Newbie Chat Problem
#1

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 :
pawn Код:
if(nonewbie == 1)
14130 :
pawn Код:
while ((idx < length) && (cmdtext[idx] <= &#39; '))
Who can help me please?
Reply
#2

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] != ' ')?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)