Doesn't load the ip properly
#1

Hello.
with this code, the ip doesn't get loaded properly.
No idea what the heck is going on.
Someone mind taking a look into it?

Thanks already.

PHP код:
forward loadDataQuicklogin(playerid);
    public 
loadDataQuicklogin(playerid)
    {
    
myStrcpy(Player[playerid][ip1337], Ip(playerid));
    new 
pserial[150];
    
gpci(playeridpserialsizeof(pserial));
    
myStrcpy(Player[playerid][gpci1337], pserial);
    
printf("%s = user ip. %s = db id.",Ip(playerid),cache_get_field_content_int(0"regip"));
    if(
Player[playerid][ip1337] == cache_get_field_content_int(0"regip") && Player[playerid][gpci1337] == cache_get_field_content_int(0"reggpci"))
    {
         return 
1;
        }
stock Ip(playerid) {
    new 
ip[25]; GetPlayerIp(playeridip25);
    return 
ip;

Reply
#2

fixed - i wanted to load it as an integer instead of a string.

stupid me. lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)