SA-MP Forums Archive
26 errors with this code - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 26 errors with this code (/showthread.php?tid=133834)



26 errors with this code - iLcke - 14.03.2010

so yah, missing a bracket some where in
Код:
if(i == 2) // paint ball
{
if(PlayerInfo[playerid][pFLicense] >= 1)
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You already have a Flying License!");
return 1;
}
fltest[playerid] = 1;
AntiHack(playerid, -AntiHack(playerid,-SBizzInfo[2][sbEntcost]);
SendClientMessage(playerid, COLOR_GREEN, "You can now take a flying test, get a shamal from the Los Santos Airport!");
i think its in if(PlayerInfo[playerid][pFLicense] >= 1)
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You already have a Flying License!");
return 1;
}
but i dont know. can you edit it or something? or tell me?


Re: 26 errors with this code - andrewp - 14.03.2010


Код:
if(i == 2) // paint ball
{
if(PlayerInfo[playerid][pFLicense] >= 1)
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You already have a Flying License!");
return 1;
}
fltest[playerid] = 1;
AntiHack(playerid, -AntiHack(playerid,-SBizzInfo[2][sbEntcost]);
SendClientMessage(playerid, COLOR_GREEN, "You can now take a flying test, get a shamal from the Los Santos Airport!");
}
That?


Re: 26 errors with this code - iLcke - 14.03.2010

Quote:
Originally Posted by andrewp
Код:
if(i == 2) // paint ball
{
if(PlayerInfo[playerid][pFLicense] >= 1)
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You already have a Flying License!");
return 1;
}
fltest[playerid] = 1;
AntiHack(playerid, -AntiHack(playerid,-SBizzInfo[2][sbEntcost]);
SendClientMessage(playerid, COLOR_GREEN, "You can now take a flying test, get a shamal from the Los Santos Airport!");
}
That?
nope.


Re: 26 errors with this code - andrewp - 14.03.2010

Can you post the exact errors please?


Re: 26 errors with this code - bartje01 - 14.03.2010


}
if(i == 2) // paint ball

{
if(PlayerInfo[playerid][pFLicense] >= 1)
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You already have a Flying License!");
return 1;
}
fltest[playerid] = 1;
AntiHack(playerid, -AntiHack(playerid,-SBizzInfo[2][sbEntcost]);
SendClientMessage(playerid, COLOR_GREEN, "You can now take a flying test, get a shamal from the Los Santos Airport!");
}


Re: 26 errors with this code - iLcke - 14.03.2010

if you want 26 errors just because of a missing bracket..
and.. if i remove
Код:
if(PlayerInfo[playerid][pFLicense] >= 1)
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You already have a Flying License!");
return 1;
}
it works fine, but i need that in there.

so to the ones who say
Код:
if(i == 2) // paint ball
{
if(PlayerInfo[playerid][pFLicense] >= 1)
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You already have a Flying License!");
return 1;
}
fltest[playerid] = 1;
AntiHack(playerid, -AntiHack(playerid,-SBizzInfo[2][sbEntcost]);
SendClientMessage(playerid, COLOR_GREEN, "You can now take a flying test, get a shamal from the Los Santos Airport!");
}
its wrong.


Re: 26 errors with this code - Deat_Itself - 14.03.2010

show me your that lines which giving you the errors and show me your errors


Re: 26 errors with this code - iLcke - 14.03.2010

usally 26 errors = missing bracket?


Re: 26 errors with this code - Deat_Itself - 14.03.2010

Quote:
Originally Posted by iLcke
usally 26 errors = missing bracket?
Show me your code so i will fix it.


Re: 26 errors with this code - iLcke - 14.03.2010

eh, im just going to work with out the

Код:
if(PlayerInfo[playerid][pFLicense] >= 1)
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You already have a Flying License!");
return 1;
}
cause now theres a missing bracket some where else in the script and i dont know where..