14.06.2013, 01:36
Help, I'm getting the materials but it's not taking away or using my VIP tokens, OR giving me the string it's supposed to.
Here's the code.
Here's the code.
Код:
{
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);
}
new currentmats = PlayerInfo[playerid][pMats];
PlayerInfo[playerid][pMats] = currentmats +1000;
}


