4 Errors on one line.
#1

Hey again... i am having a melt down about these errors.
PHP код:
D:\Los Santos Streets RolePlay\Vortex Script\gamemodes\CCRP.pwn(3246) : error 012invalid function callnot a valid address
D
:\gamemodes\CCRP.pwn(3246) : warning 215expression has no effect
D
:\gamemodes\CCRP.pwn(3246) : warning 215expression has no effect
D
:\gamemodes\CCRP.pwn(3246) : error 001expected token";"but found ")"
D:\gamemodes\CCRP.pwn(3246) : error 029invalid expressionassumed zero
D
:\gamemodes\CCRP.pwn(3246) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

and the lines are:
PHP код:
else if(gift == 7)
            {
                
GivePlayerCash(giveplayerid20000);     <----------- This is the Line.
                
SendClientMessageEx(giveplayeridCOLOR_GRAD2" Congratulations - you have won $20,000!");
                
format(stringsizeof(string), "* %s was just gifted $20,000, enjoy!"GetPlayerNameEx(giveplayerid));
                
ProxDetector(30.0giveplayeridstringCOLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
            } 
any help would be awesome..
Reply
#2

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);
            }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)