4 Errors on one line. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 4 Errors on one line. (
/showthread.php?tid=376563)
4 Errors on one line. -
Humprabbit - 10.09.2012
Hey again... i am having a melt down about these errors.
PHP код:
D:\Los Santos Streets RolePlay\Vortex Script\gamemodes\CCRP.pwn(3246) : error 012: invalid function call, not a valid address
D:\gamemodes\CCRP.pwn(3246) : warning 215: expression has no effect
D:\gamemodes\CCRP.pwn(3246) : warning 215: expression has no effect
D:\gamemodes\CCRP.pwn(3246) : error 001: expected token: ";", but found ")"
D:\gamemodes\CCRP.pwn(3246) : error 029: invalid expression, assumed zero
D:\gamemodes\CCRP.pwn(3246) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
and the lines are:
PHP код:
else if(gift == 7)
{
GivePlayerCash(giveplayerid, 20000); <----------- This is the Line.
SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won $20,000!");
format(string, sizeof(string), "* %s was just gifted $20,000, enjoy!", GetPlayerNameEx(giveplayerid));
ProxDetector(30.0, giveplayerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
any help would be awesome..
Re: 4 Errors on one line. -
mobiliz - 10.09.2012
pawn Код:
else if(gift == 7)
{
GivePlayerMoney(giveplayerid, 20000);
SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won $20,000!");
format(string, sizeof(string), "* %s was just gifted $20,000, enjoy!", GetPlayerNameEx(giveplayerid));
ProxDetector(30.0, giveplayerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
or
pawn Код:
else if(gift == 7)
{
GivePlayerMoney(playerid, 20000);
SendClientMessageEx(giveplayerid, COLOR_GRAD2, " Congratulations - you have won $20,000!");
format(string, sizeof(string), "* %s was just gifted $20,000, enjoy!", GetPlayerNameEx(giveplayerid));
ProxDetector(30.0, giveplayerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}