I'm not good with strings :S
#4

Quote:
Originally Posted by iggy1
Посмотреть сообщение
This is how id do it although iv never used dini just djson
where ever you save your ips.
pawn Код:
new ip[16];
GetPlayerIp(playerid, ip,16);
//save the string to dini here
OnPlayerConnect
pawn Код:
new pip[16];
GetPlayerIp(playerid, pip,16);
if(strcmp(DINI_STRING,pip))//As i said i dont know dini so swap 'DINI_STRING'
{                           //for a function that reads the string from the players ini file.
    //kick?
}
Not tested should work if u understand me.
Ok thanks I will look if I can use it, I think so.
Reply


Messages In This Thread
I'm not good with strings :S - by KaleOtter - 19.08.2010, 14:15
Re: I'm not good with strings :S - by ScottCFR - 19.08.2010, 14:19
Re: I'm not good with strings :S - by iggy1 - 19.08.2010, 14:31
Re: I'm not good with strings :S - by KaleOtter - 20.08.2010, 10:00
Re: I'm not good with strings :S - by KaleOtter - 20.08.2010, 10:02

Forum Jump:


Users browsing this thread: 1 Guest(s)