10.04.2010, 18:07
do you dont get it well sorta the problem here is can you give me a example a better one or tell me what exactly to do to get it working? this is what im trying to do now but im fallin lmao!!!
that code i use checks for the lockerslot thats free and store the item so can you correct this for me? im falling hard lol
Код:
else if(PlayerInfo[playerid][pLockerSlot5] == 0 )//lockerslot5 { new Matsa = PlayerInfo[playerid][pMatsA]; ammount = strval(tmp); PlayerInfo[playerid][pMatsA] -= Matsa ammount; PlayerInfo[playerid][pLockerSlot5] += ammount; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* %s places some mats in their locker.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); format(string, sizeof(string), "You have stored %d A mats in your locker.", ammount); SendClientMessage(playerid, COLOR_GREY, string); return 1; }