Error while compile
#1

Код:
resources/cmds.pwn(1153) : error 001: expected token: ")", but found "-string-"
resources/cmds.pwn(1153) : warning 215: expression has no effect
resources/cmds.pwn(1153) : warning 215: expression has no effect
resources/cmds.pwn(1153) : error 001: expected token: ";", but found ")"
resources/cmds.pwn(1153) : error 029: invalid expression, assumed zero
resources/cmds.pwn(1153) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.8	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
CODE

Код:
new targetname[MAX_PLAYER_NAME];
	if(sscanf(params, "s["#MAX_PLAYER_NAME"]", targetname))
		return SendClientMessage(playerid, COLOR_TOMATO, "[USAGE]: /unban [playerName]");
Reply
#2

2 Things:

1. You could write it:
PHP код:
if(sscanf(params"s[24]"targetname)) 
2. You should use params directly:

PHP код:
if(isNull(params)) return SendClientMessage(playeridCOLOR_TOMATO"[USAGE]: /unban [playerName]");
//and in params is the playerName 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)