27.06.2016, 17:24
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.
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(playerid, pserial, sizeof(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(playerid, ip, 25);
return ip;
}