04.01.2016, 17:39
I think this is the error:
Make it like this:
Код:
if(CPGun[playerid] == 3) { GivePlayerMoney(playerid, randommoney(1000) + 1000); DisablePlayerCheckpoint(playerid); SendClientMessage(playerid, -1, "Job: Munca s-a terminat, ai acumulat 1,500$."); new pName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid,pName,sizeof(pName)); format(string,sizeof(string), "{58FF0A}%s{FFFFFF}, you have earned {58FF0A}%d$ {FFFFFF}for completing the joob.",pName,randommoney); SendClientMessage(playerid,-1,string); return 1; }
Код:
if(CPGun[playerid] == 3) { randommoney=random(1000)+1001; GivePlayerMoney(playerid, randommoney); DisablePlayerCheckpoint(playerid); SendClientMessage(playerid, -1, "Job: Munca s-a terminat, ai acumulat 1,500$."); new pName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid,pName,sizeof(pName)); format(string,sizeof(string), "{58FF0A}%s{FFFFFF}, you have earned {58FF0A}%d$ {FFFFFF}for completing the joob.",pName,randommoney); SendClientMessage(playerid,-1,string); return 1; }