Comparing IP and logging in the player
#1

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
Reply
#2

Use dUserString (or whatever the function is).

An IP can only be loaded in to a string, you can't use periods in integers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)