Problem
#1

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.
Reply
#2

what you mean with this like skins?
Reply
#3

Quote:
Originally Posted by JUSTIC_99
what you mean with this like skins?
I didn't understand your question
Reply
#4

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);
Reply
#5

With strcmp, as any string comparison
Reply
#6

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
Reply
#7

Quote:
Originally Posted by 0rb
With strcmp, as any string comparison
And iirc it's dUserGet
Reply
#8

Orb what are you saying i don't understand...
Reply
#9

Erm, an IP isn't an integer (?)
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)