bug with register
#2

first of all: GetPlayerIp returns only 0 or 1, so you can't compare IP like this, you have to use strcmp for it
Change this:
pawn Код:
if (PlayerInfo[playerid][IP] == GetPlayerIp(playerid, plrIP, 64))
to this:
pawn Код:
if (!strcmp(PlayerInfo[playerid][IP], plrIP))
Also you forget to use GetPlayerName before formating file string in OnPlayerConnect (don't forget to add GetPlayerIp in OnDialogResponse before comparing player IP)
Reply


Messages In This Thread
bug with register - by kesarthakur - 19.07.2014, 05:12
Re: bug with register - by Scottas - 19.07.2014, 05:32
Re: bug with register - by kesarthakur - 19.07.2014, 05:35
Re: bug with register - by Scottas - 19.07.2014, 05:37
Re: bug with register - by kesarthakur - 19.07.2014, 05:37
Re: bug with register - by kesarthakur - 19.07.2014, 05:39
Re: bug with register - by Scottas - 19.07.2014, 05:46
Re: bug with register - by kesarthakur - 19.07.2014, 05:58

Forum Jump:


Users browsing this thread: 1 Guest(s)