23.11.2009, 16:31
Hi, i have tried makeing a Anti cheat system, it worked fine but than i wanted to add a system that bans a name if it connect to my server.
i tried this code:
and it comes up with this error:
Any1 who can help? 
-Naxix
i tried this code:
Код:
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
if(name == "Test")
{
Ban(playerid);
return 1;
}
return 1;
}
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\sampserver\gamemodes\AntiCheat.pwn(70) : error 033: array must be indexed (variable "name")

-Naxix

