if getPlayerStorageValue(cid, 2000) == 1 then
doCreatureSetSkullType(cid,1)
elseif getPlayerStorageValue(cid, 3000) == 1 then
doCreatureSetSkullType(cid,2)
elseif getPlayerStorageValue(cid, 4000) == 1 then
doCreatureSetSkullType(cid,3)
end
As I've noticed, you're going to really have to spell out what he did wrong for him other wise he'll have no clue. Since he doesn't feel it necessary to learn a damn thing what so everYou put local function setSkull(cid) but did not end the function.
You do need function setSkull in order to have a wait time like he regularly requested. Not to mention the way you have the script set up, no player will ever get past white skull because 1 of 2 reasons: 1. The order in which you're checking the storages. 2. You're not setting the previous storage to 0 when advancing to the next storage.You dont need "function setSkull".. just use this:
Code:if getPlayerStorageValue(cid, 2000) == 1 then doCreatureSetSkullType(cid,1) elseif getPlayerStorageValue(cid, 3000) == 1 then doCreatureSetSkullType(cid,2) elseif getPlayerStorageValue(cid, 4000) == 1 then doCreatureSetSkullType(cid,3) end
It will check storage and give a skull..
You do need function setSkull in order to have a wait time like he regularly requested. Not to mention the way you have the script set up, no player will ever get past white skull because 1 of 2 reasons: 1. The order in which you're checking the storages. 2. You're not setting the previous storage to 0 when advancing to the next storage.
no bro i need function setSkullYou dont need "function setSkull".. just use this:
Code:if getPlayerStorageValue(cid, 2000) == 1 then doCreatureSetSkullType(cid,1) elseif getPlayerStorageValue(cid, 3000) == 1 then doCreatureSetSkullType(cid,2) elseif getPlayerStorageValue(cid, 4000) == 1 then doCreatureSetSkullType(cid,3) end
It will check storage and give a skull..