13.06.2013, 22:21
I'm reworking /viplocker....
How can I give the player materials?
I'm using this, but it gives me an error in compiler and I can't compile.
How can I give the player materials?
I'm using this, but it gives me an error in compiler and I can't compile.
Код:
{ case 0: { if(PlayerInfo[playerid][pDonateRank] < 1) { if(PlayerInfo[playerid][pTokens] < 1) { SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You do not have enough tokens for the materials."); return 1; } PlayerInfo[playerid][pTokens] -= 1; format(string, sizeof(string), "VIP: You have traded 1 token for 1000 materials, you now have %d token(s).", PlayerInfo[playerid][pTokens]); SendClientMessageEx(playerid, COLOR_YELLOW, string); } PlayerInfo[playerid][pMats] = currentmats +1000; } } }