26 errors with this code
#1

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


Код:
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?
Reply
#3

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

Can you post the exact errors please?
Reply
#5


}
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!");
}
Reply
#6

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

show me your that lines which giving you the errors and show me your errors
Reply
#8

usally 26 errors = missing bracket?
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)