05.07.2009, 14:02
Im using seifs administration script and since It's auto login is bugged, I decided to make my own one. I have this when the player registers
And this under OnPlayerConnect
But I get this error
Help
pawn Код:
new string[50];
format(string, sizeof(string), "/sAccounts/%s.seifadmin", name);
dini_Set(string, "ip",ip);
pawn Код:
new playerIP[16], path[22+MAX_PLAYER_NAME], name[MAX_PLAYER_NAME], fileip[16];
GetPlayerIp(playerid, playerIP, sizeof(playerIP));
GetPlayerName(playerid, name, sizeof(name));
format(path, sizeof(path), "/sAccounts/%s.seifadmin", name);
/*695*/ fileip = dini_Get(path, "ip");
if (strcmp(playerIP, fileip, false)== 0)
{
SendClientMessage(playerid, YELLOW, "|- Auto Login -|");
Код:
C:\Documents and Settings\Tadej\Desktop\samp server\samp02Xserver.win32\filterscripts\SeifAdmin.pwn(695) : error 047: array sizes do not match, or destination array is too small