[HELP] 4 quick 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] 4 quick errors (
/showthread.php?tid=251107)
[HELP] 4 quick errors -
Master_Gangster - 25.04.2011
okay so let me get to the point. I have 4 errors when I compiled my script with a wanted level star-based system. the error is in this line:
pawn Код:
for (i = 0; i <sizeof(g_aStarTextDraws); i++ )
before this code is a piece of variable(s) that might interest you/might also interfere?:
pawn Код:
new i,
#if STARS_PER_ROW > 6
col = 7,
row = 0
#else
col = 1,
row = 1
#endif
;
the errors I get are on the first line I posted, these are the errors:
Код:
C:\Users\owner\Desktop\Counter-Strike\gamemodes\SFCRRPG.pwn(2320) : error 017: undefined symbol "g_aStarTextDraws"
C:\Users\owner\Desktop\Counter-Strike\gamemodes\SFCRRPG.pwn(2320) : error 036: empty statement
C:\Users\owner\Desktop\Counter-Strike\gamemodes\SFCRRPG.pwn(2320) : error 001: expected token: ";", but found ")"
C:\Users\owner\Desktop\Counter-Strike\gamemodes\SFCRRPG.pwn(2320) : fatal error 107: too many error messages on one line
Any ideas?
AW: [HELP] 4 quick errors -
xerox8521 - 25.04.2011
Код:
error 017: undefined symbol "g_aStarTextDraws"
pawn Код:
//means that you didnt defined g_aStarTextDraws add at the top of your script but under the includes:
new g_aStarTextDraws;
Re: AW: [HELP] 4 quick errors -
Hal - 25.04.2011
Quote:
Originally Posted by xerox8521
Код:
error 017: undefined symbol "g_aStarTextDraws"
pawn Код:
//means that you didnt defined g_aStarTextDraws add at the top of your script but under the includes:
new g_aStarTextDraws;
|
AND
remove the ; from for (i = 0; i <sizeof(g_aStarTextDraws); i++ )
pawn Код:
for (i = 0; i <sizeof(g_aStarTextDraws) i++ )
Re: AW: [HELP] 4 quick errors -
Master_Gangster - 25.04.2011
Quote:
Originally Posted by xerox8521
Код:
error 017: undefined symbol "g_aStarTextDraws"
pawn Код:
//means that you didnt defined g_aStarTextDraws add at the top of your script but under the includes:
new g_aStarTextDraws;
|
Quote:
Originally Posted by Hal
AND
remove the ; from for (i = 0; i <sizeof(g_aStarTextDraws); i++ )
pawn Код:
for (i = 0; i <sizeof(g_aStarTextDraws) i++ )
|
thanks you 2 (;