Newbie Chat Problem - 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: Newbie Chat Problem (
/showthread.php?tid=328689)
Newbie Chat Problem -
Ex_ionutz - 25.03.2012
I made a newbie chat, but i get those errors:
Код:
C:\Documents and Settings\Admin\Desktop\GL Zone\gamemodes\TrueGames.pwn(500) : error 001: expected token: ")", but found "-string-"
C:\Documents and Settings\Admin\Desktop\GL Zone\gamemodes\TrueGames.pwn(500) : error 001: expected token: ";", but found "-string-"
C:\Documents and Settings\Admin\Desktop\GL Zone\gamemodes\TrueGames.pwn(14123) : error 017: undefined symbol "nonewbie"
C:\Documents and Settings\Admin\Desktop\GL Zone\gamemodes\TrueGames.pwn(14130) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Admin\Desktop\GL Zone\gamemodes\TrueGames.pwn(14130) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\Admin\Desktop\GL Zone\gamemodes\TrueGames.pwn(14130) : error 036: empty statement
C:\Documents and Settings\Admin\Desktop\GL Zone\gamemodes\TrueGames.pwn(14130) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Errors.
on lines:
500 :
pawn Код:
forward SendNewbieMessage(color, string#91;]);
14123 :
14130 :
pawn Код:
while ((idx < length) && (cmdtext[idx] <= ' '))
Who can help me please?
Re: Newbie Chat Problem -
Alternative112 - 26.03.2012
Line 500:
Код:
forward SendNewbieMessage(color, string);
Line 14123: Make sure nonewbie is defined either inside the function you're using it in, or globally.
Line 14130...it's a problem with
(cmdtext[idx] <= ' '), although I have no idea what you're trying to do by checking if something is less than or equal to
' '. <= wants a number of some kind. Maybe you are trying to use
(cmdtext[idx] != ' ')?