SA-MP Forums Archive
need help with 4 errors - 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)
+--- Thread: need help with 4 errors (/showthread.php?tid=320749)



need help with 4 errors - Swemonstere - 24.02.2012

C:\Users\Jakob Rцnn\Desktop\(0.3d) The Life As Pilot\gamemodes\Pilotscript.pwn(657) : error 017: undefined symbol "YSI_g"
C:\Users\Jakob Rцnn\Desktop\(0.3d) The Life As Pilot\gamemodes\Pilotscript.pwn(657) : warning 215: expression has no effect
C:\Users\Jakob Rцnn\Desktop\(0.3d) The Life As Pilot\gamemodes\Pilotscript.pwn(657) : error 001: expected token: ")", but found ";"
C:\Users\Jakob Rцnn\Desktop\(0.3d) The Life As Pilot\gamemodes\Pilotscript.pwn(657) : error 036: empty statement
C:\Users\Jakob Rцnn\Desktop\(0.3d) The Life As Pilot\gamemodes\Pilotscript.pwn(657) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


here we have little of it

public UpdateTextdraw()
{
new szString[40];
foreach ( Player, ID )


// AFK
if (GetPVarInt(i, "AFK") == 1) TextDrawShowForPlayer(i, afk);
else if (GetPVarInt(i, "AFK") == 0) TextDrawHideForPlayer(i, afk);
if (IsPlayerInAnyVehicle(i) && IsAirVehicle(GetPlayerVehicleID(i)))


Re: need help with 4 errors - DarkB0y - 24.02.2012

show the line got error


Re: need help with 4 errors - Swemonstere - 24.02.2012

here u go : foreach ( Player, ID )


Re: need help with 4 errors - Konstantinos - 24.02.2012

I had the same problem because I like to have spaces in the ( ).
But if you have space on the foreach( Something.., x ) it gives error.
pawn Код:
foreach (Player, ID ) // you can have space at the last ")" only not on the "(" at the foreach



Re: need help with 4 errors - Kukkurloom - 24.02.2012

C:\Users\Jakob Rцnn\Desktop\(0.3d) The Life As Pilot\gamemodes\Pilotscript.pwn(657) : error 017: undefined symbol "YSI_g"
C:\Users\Jakob Rцnn\Desktop\(0.3d) The Life As Pilot\gamemodes\Pilotscript.pwn(657) : error 001: expected token: ")",

1) You need to define YSI_g
2) You need to change ; to ).


Re: need help with 4 errors - Konstantinos - 24.02.2012

Quote:
Originally Posted by Kukkurloom
Посмотреть сообщение
C:\Users\Jakob Rцnn\Desktop\(0.3d) The Life As Pilot\gamemodes\Pilotscript.pwn(657) : error 017: undefined symbol "YSI_g"
C:\Users\Jakob Rцnn\Desktop\(0.3d) The Life As Pilot\gamemodes\Pilotscript.pwn(657) : error 001: expected token: ")",

1) You need to define YSI_g
2) You need to change ; to ).
Haha! You made me laugh, after the boring studing.