PDA

View Full Version : to many errors on line


Lukka_Vercetti
11/08/2014, 02:40 PM
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

Misiur
11/08/2014, 03:18 PM
Stare at this
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) || PlayerInfo[playerid][pDonator] >= 3)) return 1;
And check out number of your parentheses.

Stinged
11/08/2014, 03:41 PM
Compiling errors are meant to be read..

Clad
11/08/2014, 03:45 PM
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;
}

Lukka_Vercetti
11/08/2014, 03:49 PM
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

Lukka_Vercetti
11/08/2014, 03:52 PM
Compiling errors are meant to be read..

sorry mr pink floyd :) i actually did read it bud im just crap.. honestly

Stinged
11/08/2014, 09:05 PM
Here's the fix:
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER || PlayerInfo[playerid][pDonator] >= 3)

Lukka_Vercetti
12/08/2014, 05:50 AM
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 :/