to many errors on line
#1

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
Reply
#2

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

Compiling errors are meant to be read..
Reply
#4

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;
}
Reply
#5

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
Reply
#6

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
Reply
#7

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

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 :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)