24.05.2017, 08:13
Here is my code:
Errors
Код:
if(Player[playerid][Job] == 3) { if(Player[playerid][JobSalary]>gettime()) { if(Player[playerid][JobLevel]==1) { if(Player[playerid][JobSalary]>gettime) { GivePlayerMoney(playerid, 250000); Player[playerid][JobSalary] = gettime()+604800; UpdatePlayerJobSalary(playerid); SendClientMessage(playerid,COLOR_BLUE,"You gained {008040}$250K{0000FFFF} salary. Next salary after 1 week."); } } else if(Player[playerid][JobLevel]==2) { if(Player[playerid][JobSalary]>gettime) { GivePlayerMoney(playerid, 500000); Player[playerid][JobSalary] = gettime()+604800; UpdatePlayerJobSalary(playerid); SendClientMessage(playerid,COLOR_BLUE,"You gained {008040}$500K{0000FFFF} salary. Next salary after 1 week."); } } else if(Player[playerid][JobLevel]==3) { if(Player[playerid][JobSalary]>gettime) { GivePlayerMoney(playerid, 750000); Player[playerid][JobSalary] = gettime()+604800; UpdatePlayerJobSalary(playerid); SendClientMessage(playerid,COLOR_BLUE,"You gained {008040}$750K{0000FFFF} salary. Next salary after 1 week."); } } } } else { SendClientMessage(playerid,-1,"{FF0000}[{FFFF00}Fire Department{FF0000}]:{FFFFFF}Your salary is not ready yet!"); } return 1;
Код:
D:\GTA San Andreas\Server\gamemodes\mysql1.pwn(856) : error 076: syntax error in the expression, or invalid function call D:\GTA San Andreas\Server\gamemodes\mysql1.pwn(865) : error 076: syntax error in the expression, or invalid function call D:\GTA San Andreas\Server\gamemodes\mysql1.pwn(875) : error 076: syntax error in the expression, or invalid function call Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.