Mistake in some script, can't pinpoint it please help.
#1

So I was working on register and login ,and when the server starts It doesn't show a proper message whether the player is registered or not.
I want it to show if the player has to to register or has to log in:
PHP код:
public OnPlayerConnect(playerid)
{
#pragma tabsize 0
new pfile[256];
    new 
string[64];
   
    
   
RemovePlayerMapIconplayerid12 );
if(
dini_Exists(pfile)) { format(stringsizeof(string), "/login [password] "playername1);
SendClientMessage(playerid0xFF4646Fstring);
return 
1;
}
 else if(
dini_Exists(pfile)) { format(stringsizeof(string), "/register [password] "playername1);
  
SendClientMessage(playerid0xFF000000,string); }
  
        return 
1;
    } 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)