|
|
#1 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jun 2010
Location: france / french
Posts: 635
Reputation: 16
|
Hi guys.
I have a problem for save the IP of player. This is my script: Create: pawn Code:
When disconnect: pawn Code:
And user file... LastIP = 15.... How i can resolve my problem ? Cordially. |
|
|
|
|
|
#2 |
|
Little Clucker
![]() Join Date: Jul 2010
Posts: 39
Reputation: 0
|
Create:
PlayerInfo[playerid][pLastIP] = 0; dini_Set(file,"LastIP",PlayerInfo[playerid][pLastIP]); Disconnect: new IP[17]; GetPlayerIp(playerid, IP, sizeof(IP)); format(PlayerInfo[playerid][pLastIP],120,"%s",IP); dini_Set(file, "LastIP",PlayerInfo[playerid][pLastIP]); |
|
|
|
|
|
#3 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Mar 2011
Location: Somewhere you're not
Posts: 424
Reputation: 57
|
new playerIP[16];
GetPlayerIP(playerid, playerIP, sizeof(playerIP)); dini_Set(file, "LastIP", playerIP); |
|
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2010
Location: Brasília
Posts: 4,255
Reputation: 474
|
IP is a string ...
pawn Code:
|
|
|
|
|
|
#5 |
|
Little Clucker
![]() Join Date: Jul 2010
Posts: 39
Reputation: 0
|
PHP Code:
|
|
|
|
|
|
#6 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jun 2010
Location: france / french
Posts: 635
Reputation: 16
|
Thanks all !
|
|
|
|
|
|
#7 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jun 2010
Location: france / french
Posts: 635
Reputation: 16
|
When i'm connected, the IP is 255.255.255.255... How I can resolve this ?
|
|
|
|
|
|
#8 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jun 2010
Location: france / french
Posts: 635
Reputation: 16
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Save pos problem. | tuuker | Help Archive | 21 | 03/03/2011 05:19 PM |
| /save problem | barneystinson | Server Support | 8 | 27/02/2011 05:13 AM |
| car save problem | ken9926 | Help Archive | 20 | 01/09/2010 08:30 AM |