Weird error on an /arrest cmd.
#1

What is wrong with this;

Код:
	if(IsPlayerInRangeOfPoint(playerid, 5.0, XX1, YY1, ZZ1))
	{
	    format(string,sizeof(string),"%s(%d) is too far away. You cannot reach him to arrest him.",PlayerName(id),id);
	    SendClientMessage(playerid,-1,string);
	    return 1;
	}
Here are the errors I'm getting,

Код:
C:\Users\School\Desktop\Team DeathMatch\gamemodes\afp.pwn(660) : error 012: invalid function call, not a valid address
C:\Users\School\Desktop\Team DeathMatch\gamemodes\afp.pwn(660) : warning 215: expression has no effect
C:\Users\School\Desktop\Team DeathMatch\gamemodes\afp.pwn(660) : error 001: expected token: ";", but found ")"
C:\Users\School\Desktop\Team DeathMatch\gamemodes\afp.pwn(660) : error 029: invalid expression, assumed zero
C:\Users\School\Desktop\Team DeathMatch\gamemodes\afp.pwn(660) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#2

Anyone?
Reply
#3

What is line 660, is it the String part or what?
Reply
#4

The format(string part.
Reply
#5

Aight, this is straight from my script, but edited to your stuff.

pawn Код:
format(string, sizeof(string), "%s(%d) is too far away. You cannot reach him to arrest him.",PlayerName(id),id);
Try that.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)