27.08.2011, 11:40
Hello,
I'm Currently Scripting My Own Game-mode. I Decided To Write A Piece Of Code Designed To Stop People From Connecting To The Server With The Server's [TAG]. I've Defined PlayerInfo Since Most Of My Game-mode Variables Are pInfo..
Here Is What I've Come Up With...
Errors:
Hopefully I Can Get This To Work With Your Help!
Kind Regards,
Kensington
I'm Currently Scripting My Own Game-mode. I Decided To Write A Piece Of Code Designed To Stop People From Connecting To The Server With The Server's [TAG]. I've Defined PlayerInfo Since Most Of My Game-mode Variables Are pInfo..
Here Is What I've Come Up With...
Code:
public OnPlayerConnect(playerid) { if(PlayerInfo[playerid][TagPerm] >= 0) { new tName[24]; new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid,tName, 24); GetPlayerName(playerid,PlayerName, 24); if(PlayerName == "[TAG]%s",tName); // 369 { SendClientMessageToAll(COLOR_GREY,"%s(%d)Kicked Because TAG Permission Hasn't Been Given To Them",tName,playerid); //371 Kick(playerid); } } return 1; }
Code:
(369) : error 033: array must be indexed (variable "PlayerName") (369) : error 036: empty statement (371) : warning 202: number of arguments does not match definition (371) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Kind Regards,
Kensington