Comparing IP and logging in the player - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Comparing IP and logging in the player (
/showthread.php?tid=143939)
Comparing IP and logging in the player -
Kuba_PL - 24.04.2010
pawn Код:
new tmp[50],tmp2[20];
GetPlayerIp(playerid,tmp,50);
tmp2 = dUserINT(PlayerName(playerid)).("IP"); // Line 11498
if(!strcmp(tmp,tmp2,true))
{
SendClientMessage(playerid,COLOR_GREEN,"Auto IP Logged In");
}
Quote:
|
Originally Posted by Pawn Compiler
(1149  : error 033: array must be indexed (variable "tmp2")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
|
I was searching the forum about that error, but didn't help :/
Help please

. Thanks
Re: Comparing IP and logging in the player -
Calgon - 24.04.2010
Use dUserString (or whatever the function is).
An IP can only be loaded in to a string, you can't use periods in integers.