I am new & learning mysql. If I want to save IP from a Player, my databse is creating a new player
with the ip 127 (full ip would be 127.0.0.1 (localhost))
Here my Code:
Here my MYSQL Databse:
https://www.pic-upload.de/view-34638580/pat.png.html
with the ip 127 (full ip would be 127.0.0.1 (localhost))
Here my Code:
Quote:
new name[MAX_PLAYER_NAME],queryzz[128],IP[35]; GetPlayerName(playerid,name,sizeof(name)); GetPlayerIp(playerid, IP, sizeof(IP)); format(queryzz,sizeof(queryzz),"INSERT INTO user (username,playerip) VALUES ('%s','%s') ",name,IP); mysql_pquery(dbhandle,queryzz,"","",playerid); |
Here my MYSQL Databse:
https://www.pic-upload.de/view-34638580/pat.png.html