AFk system prob.
#1

AFk system prob.


My Code:
Код:
	if(strcmp(cmd, "/afk", true) == 0)
	{
	    new name[MAX_PLAYER_NAME], string[100];
	    new Float:x, Float:y, Float:z;
 	        GetPlayerName(playerid, name, sizeof(name));
  		format(string, sizeof(string), "[AFK] %s Is Now Afk (Away From Keyboard)", name );
   		SendClientMessageToAll(COLOR_GROVE, string);
        GetPlayerPos(playerid, x, y, z);
	    SetPlayerPos(playerid, x y, z+800):
	}
Errors:
Код:
C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\Mazda.pwn(33395) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\Mazda.pwn(33401) : error 001: expected token: ",", but found "-identifier-"
C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\Mazda.pwn(33401) : warning 215: expression has no effect
C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\Mazda.pwn(33401) : warning 215: expression has no effect
C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\Mazda.pwn(33401) : error 001: expected token: ";", but found ")"
C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\Mazda.pwn(33401) : error 029: invalid expression, assumed zero
C:\Users\MaticKepa\Desktop\Real Life ENG\gamemodes\Mazda.pwn(33401) : 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


Messages In This Thread
AFk system prob. - by kepa333 - 18.06.2012, 14:09
Re: AFk system prob. - by Ironboy - 18.06.2012, 14:15
Re: AFk system prob. - by MarinacMrcina - 18.06.2012, 14:17
Re: AFk system prob. - by kepa333 - 18.06.2012, 14:17
Re: AFk system prob. - by FUNExtreme - 18.06.2012, 14:32
Re: AFk system prob. - by Ironboy - 18.06.2012, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)