19.04.2010, 08:52
Hey, i got this problem, i have been trying to make a ip saver with dudb, but in my user file it shows up like
ip=9
not sure exactly why... but here is the command i use to test saving
someone please tell me why this is happening
ip=9
not sure exactly why... but here is the command i use to test saving
pawn Код:
if(strcmp(cmd, "/smys", true) == 0 || strcmp(cmd, "/savemystats", true) == 0)
{
if (PLAYERLIST_authed[playerid])
{
new pIP[30];
dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid));
dUserSetINT(PlayerName(playerid)).("admin",Admin[playerid]);
dUserSetINT(PlayerName(playerid)).("rank",Rank[playerid]);
dUserSetINT(PlayerName(playerid)).("ip",GetPlayerIp(playerid, pIP, sizeof(pIP)));
}
else
{
SendClientMessage(playerid, COLOR_BLUE, "You Must Login Before Using This!(/login)");
}
return 1;
}