Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem (
/showthread.php?tid=63147)
Problem -
Dragan - 26.01.2009
I have problem with writing 1 line
I've saved players ip and it works like this
GetPlayerIp(playerid, IP, sizeof(IP));
dUserSet(PlayerName(playerid)).("IP", IP);
Now i wanna write " If players current ip is same as saved one for that account"
Like if GetPlayerIp = DUDB saved one....
How?
I'm using DUDB.
Re: Problem -
JUSTIC_99 - 26.01.2009
what you mean with this like skins?
Re: Problem -
Dragan - 26.01.2009
Quote:
Originally Posted by JUSTIC_99
what you mean with this like skins?
|
I didn't understand your question
Re: Problem -
JUSTIC_99 - 26.01.2009
Quote:
Originally Posted by Dragan
I have problem with writing 1 line
I've saved players ip and it works like this
GetPlayerIp(playerid, IP, sizeof(IP));
dUserSet(PlayerName(playerid)).("IP", IP);
Now i wanna write " If players current ip is same as saved one for that account"
Like if GetPlayerIp = DUDB saved one....
How?
I'm using DUDB.
|
oh i got it now u want to save ur id?
check the include in Pawno folder
there is file called a_playere open it and watch the player commands
and use this command for saving the ip i guess
Pawno
Код:
GetPlayerIp(playerid, name[], len);
Re: Problem -
yom - 26.01.2009
With strcmp, as any string comparison
Re: Problem -
Dragan - 26.01.2009
Omg you guys don't get it
I need smth like
If (GetPlayerIp(playerid, IP, sizeof(IP)); != dUserINT(PlayerName(playerid)).("IP");
but that is totaly wrong...and dUserINT should be replaced with smth else because ip is string
Re: Problem -
yom - 26.01.2009
Quote:
Originally Posted by 0rb
With strcmp, as any string comparison
|
And iirc it's dUserGet
Re: Problem -
Dragan - 26.01.2009
Orb what are you saying i don't understand...
Re: Problem -
Mikep - 26.01.2009
Erm, an IP isn't an integer (?)
Re: Problem -
Dragan - 26.01.2009
No it isn't. It's string ... it works like string to me and as integer not.
Anyway can you write me that code i need plz..Or i will need to consult with DracoBlue