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);
new randommoney;
if(CPGun[playerid] == 1) { GivePlayerMoney(playerid, randommoney(1000) + 1000); DisablePlayerCheckpoint(playerid); CPGun[playerid] = 2; SetPlayerCheckpoint(playerid, 1358.7355,263.9266,19.5547, 3.0); SendClientMessage(playerid, -1, "Job: Ai primit 500$ pentru c-ai preluat gunoiul, du-te la celalalt checkpoint."); return 1; } if(CPGun[playerid] == 2) { GivePlayerMoney(playerid, randommoney(1000) + 1000); DisablePlayerCheckpoint(playerid); CPGun[playerid] = 3; SetPlayerCheckpoint(playerid, 2045.4828,1386.7408,10.6719, 3.0); SendClientMessage(playerid, -1, "Job: Ai primit 500$ pentru c-ai preluat gunoiul, du-te la celalalt checkpoint."); return 1; } 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; }
D:\Samp\gamemodes\skenzi.pwn(97) : warning 213: tag mismatch D:\Samp\gamemodes\skenzi.pwn(184) : error 012: invalid function call, not a valid address D:\Samp\gamemodes\skenzi.pwn(184) : warning 215: expression has no effect D:\Samp\gamemodes\skenzi.pwn(184) : error 001: expected token: ";", but found ")" D:\Samp\gamemodes\skenzi.pwn(184) : error 029: invalid expression, assumed zero D:\Samp\gamemodes\skenzi.pwn(184) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
error 001: expected token: ";", but found ")"
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; }
randommoney=random(100)+101; GivePlayerMoney(playerid, randommoney);
if(CPGun[playerid] == 1) { GivePlayerMoney(playerid, 500); DisablePlayerCheckpoint(playerid); CPGun[playerid] = 2; SetPlayerCheckpoint(playerid, 1358.7355,263.9266,19.5547, 3.0); SendClientMessage(playerid, -1, "Job: Ai primit 500$ pentru ca ai preluat gunoiul, du-te la celalalt checkpoint."); return 1; } if(CPGun[playerid] == 2) { GivePlayerMoney(playerid, 500); DisablePlayerCheckpoint(playerid); CPGun[playerid] = 3; SetPlayerCheckpoint(playerid, 2045.4828,1386.7408,10.6719, 3.0); SendClientMessage(playerid, -1, "Job: Ai primit 500$ pentru c-ai preluat gunoiul, du-te la celalalt checkpoint."); return 1; } if(CPGun[playerid] == 3) { randommoney=random(1000)+2001; GivePlayerMoney(playerid, randommoney); DisablePlayerCheckpoint(playerid); new pName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid,pName,sizeof(pName)); format(string,sizeof(string), "Job: {58FF0A}%s{FFFFFF}, ai acumulat {58FF0A}%d$ {FFFFFF}pentru ca ai terminat misiunea de gunoier.",pName,randommoney); SendClientMessage(playerid,-1,string); return 1; }
Код:
new randommoney; Код:
D:\Samp\gamemodes\skenzi.pwn(97) : warning 213: tag mismatch D:\Samp\gamemodes\skenzi.pwn(184) : error 012: invalid function call, not a valid address D:\Samp\gamemodes\skenzi.pwn(184) : warning 215: expression has no effect D:\Samp\gamemodes\skenzi.pwn(184) : error 001: expected token: ";", but found ")" D:\Samp\gamemodes\skenzi.pwn(184) : error 029: invalid expression, assumed zero D:\Samp\gamemodes\skenzi.pwn(184) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |