IP Not saving
#3

I'm surprised this didn't give you an error...

pawn Код:
pInfo[playerid][pIP] = playerip;
Use strcpy to do that- it's probably what's causing this problem.

pawn Код:
#define strcpy(%0,%1) \
    strcat((%0[0] = '\0', %0), %1)
Personally, I just call GetPlayerIp() under OnPlayerConnect and store it into a PVar. It's not like their IP is going to change while they're connected to the server.
Reply


Messages In This Thread
IP Not saving - by Infinity90 - 20.02.2013, 14:44
Re: IP Not saving - by ryansheilds - 20.02.2013, 16:17
Re: IP Not saving - by Scenario - 20.02.2013, 16:43
Re: IP Not saving - by Infinity90 - 20.02.2013, 16:50
Re: IP Not saving - by CreativityLacker - 20.02.2013, 16:51
Re: IP Not saving - by Vince - 20.02.2013, 16:56

Forum Jump:


Users browsing this thread: 1 Guest(s)