SA-MP Forums Archive
to many errors on 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: to many errors on line (/showthread.php?tid=531204)



to many errors on line - Lukka_Vercetti - 11.08.2014

hello added some new neons to my script as the old ones wer awful
can anyone sort the pdonator line out please keep getting to many errors on line expecting ; and finding )

CMD:buyneon(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) || PlayerInfo[playerid][pDonator] >= 3)) return 1;

ShowPlayerDialog(playerid, DIALOG_ID_NEON, DIALOG_STYLE_LIST, "Available Neon Colors", "{1500FF}Blue\n{FF0000}Red\n{40FF00}Green\nWhite\n {FF00FB}Pink\n{DDFF00}Yellow\n{9900FF}Remove Neon", "Select", "Cancel");

return 1;
}

will plus rep


Re: to many errors on line - Misiur - 11.08.2014

Stare at this
pawn Код:
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) || PlayerInfo[playerid][pDonator] >= 3)) return 1;
And check out number of your parentheses.


Re: to many errors on line - Stinged - 11.08.2014

Compiling errors are meant to be read..


Re: to many errors on line - Clad - 11.08.2014

pawn Код:
CMD:buyneon(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) && PlayerInfo[playerid][pDonator] >= 3)) return 1;

ShowPlayerDialog(playerid, DIALOG_ID_NEON, DIALOG_STYLE_LIST, "Available Neon Colors", "{1500FF}Blue\n{FF0000}Red\n{40FF00}Green\nWhite\n {FF00FB}Pink\n{DDFF00}Yellow\n{9900FF}Remove Neon", "Select", "Cancel");

return 1;
}



Re: to many errors on line - Lukka_Vercetti - 11.08.2014

i know man i am a complete nob at this mate, but i will look at this until i fix it i just thought id ask as it is alot quicker but i spose your plan will help me in the long run xD


Re: to many errors on line - Lukka_Vercetti - 11.08.2014

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Compiling errors are meant to be read..
sorry mr pink floyd i actually did read it bud im just crap.. honestly


Re: to many errors on line - Stinged - 11.08.2014

Here's the fix:
pawn Код:
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER || PlayerInfo[playerid][pDonator] >= 3)



Re: to many errors on line - Lukka_Vercetti - 12.08.2014

i had to go back to this one http://pastebin.com/evngTvQM as it was compiling lol
but still not working properly, its not destroying the object on the second input when doing /neon
and also it doesnt really work when other players are in my server lol :/