02.04.2009, 13:32
I can get the IP of the user connected, but then im trying to get the IP from my ini file...
In my ini file i have:
Decysen=127.0.0.1
But i cant get my script working...
I have this on the top of my script:
Then this in OnPlayerConnect:
Here's the error:
This is the error line:
Can somebody please help me?
Thnx!
In my ini file i have:
Decysen=127.0.0.1
But i cant get my script working...
I have this on the top of my script:
pawn Код:
// *** IP Verification *** //
new IP[MAX_PLAYERS];
new INI[MAX_PLAYERS];
pawn Код:
GetPlayerName(playerid, Name, sizeof(Name));
GetPlayerIp(playerid, IP, sizeof(IP));
INI[playerid] = dini_Get("DCLogin/IPs.ini", Name);
printf("IP: %s |-| INI: %s", IP[playerid], INI[playerid]);
pawn Код:
D:\_Spellen\bkp\filterscripts\dcadmin.pwn(924) : error 006: must be assigned to an array
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
pawn Код:
INI[playerid] = dini_Get("DCLogin/IPs.ini", Name);
Thnx!