19.07.2014, 05:32
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:
to this:
Also you forget to use GetPlayerName before formating file string in OnPlayerConnect (don't forget to add GetPlayerIp in OnDialogResponse before comparing player IP)
Change this:
pawn Код:
if (PlayerInfo[playerid][IP] == GetPlayerIp(playerid, plrIP, 64))
pawn Код:
if (!strcmp(PlayerInfo[playerid][IP], plrIP))