[SOLVED]Problem with (ip login)
#1

BUG [SOLVED]

AND THANK TO
Conroy
&
DeathOnaStick
Reply
#2

OnPlayerConnect: Why does "format" open a bracket? Sry if this is a dumb question somehow, but for me it seems a bit weird.
Reply
#3

pawn Код:
if(strcmp(rip[playerid], dini_Get(file,"IP")))
replace with:

pawn Код:
if(!strcmp(rip[playerid], dini_Get(file,"IP")))
Reply
#4

Quote:
Originally Posted by Conroy
pawn Код:
if(strcmp(rip[playerid], dini_Get(file,"IP")))
replace with:

pawn Код:
if(!strcmp(rip[playerid], dini_Get(file,"IP")))
+bracket wrong set (now i noticed exactly where)

pawn Код:
if(fexist(file))
{
Format(file,sizeof(file),"/mRegistration/%s IP.ini",name);
GetPlayerIp(playerid,rip[playerid],16);
if(strcmp(rip[playerid], dini_Get(file,"IP")))
{
SpawnPlayer(playerid);
IsLogged[playerid] = 1;
TogglePlayerSpectating(playerid, 0);
}
if(!dini_Exists(file))
{
ShowPlayerDialog(playerid, WELCOME2, DIALOG_STYLE_MSGBOX, "Welcome", string, "Register", "Login");
}
I hope this solved the problem so far.
Reply
#5

As I said in my previous post, strcmp requires a ! if you are wanting to match two variables.
Reply
#6

Found the problem

There was a BUG under onplayerconnect
Fixed it and now it works fine

AND THANK YOU VERY MUCH
Conroy
&
DeathOnaStick
Reply
#7

[SOLVED]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)