Error, need help. - 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: Error, need help. (
/showthread.php?tid=152286)
Error, need help. -
iStarzz - 03.06.2010
When i compile my script it gives some errors. :S
Script:
pawn Код:
if(TeamKills[0] > TeamKills[1])
{
SetTimer("US_WIN",1000,0)
} // error line
else if(TeamKills[1] > TeamKills[0])
{
SetTimer("Imperial_WIN",1000,0)
} // error line
Код:
(234) : error 001: expected token: ";", but found "}"
(238) : error 001: expected token: ";", but found "}"
Re: Error, need help. -
MastahServers - 03.06.2010
pawn Код:
if(TeamKills[0] > TeamKills[1])
{
SetTimer("US_WIN",1000,0)
} // error line
else if(TeamKills[1] > TeamKills[0])
{
SetTimer("Imperial_WIN",1000,0)
} // error line
to
pawn Код:
if(TeamKills[0] > TeamKills[1])
{
SetTimer("US_WIN",1000,0);
} // error line
else if(TeamKills[1] > TeamKills[0])
{
SetTimer("Imperial_WIN",1000,0);
} // error line
Re: Error, need help. -
Jonni8 - 03.06.2010
Try this:
pawn Код:
if(TeamKills[0] > TeamKills[1])
{
SetTimer("US_WIN",1000,0)[color=red];[/color]
}
else if(TeamKills[1] > TeamKills[0])
{
SetTimer("Imperial_WIN",1000,0)[color=red];[/color]
}
Re: Error, need help. -
iStarzz - 03.06.2010
Ty