22.06.2016, 04:34
Try This.
Код:
if(PlayerInfo[playerid][ptokens] >= amount) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); PlayerInfo[TarID][ptokens] += amount; PlayerInfo[playerid][ptokens] -= amount; format(string, sizeof(string), "You have recieved %d Tokens from %s.", amount, GetPlayerName(playerid)); SendClientMessage(TarID, COLOR_GRAD2, string); format(string, sizeof(string), "You have given %s %d Tokens.", GetPlayerName(TarID), amount); SendClientMessage(playerid, COLOR_GRAD2, string); }