01.10.2010, 11:35
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:
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];
RemovePlayerMapIcon( playerid, 12 );
if(dini_Exists(pfile)) { format(string, sizeof(string), "/login [password] ", playername1);
SendClientMessage(playerid, 0xFF4646F, string);
return 1;
}
else if(dini_Exists(pfile)) { format(string, sizeof(string), "/register [password] ", playername1);
SendClientMessage(playerid, 0xFF000000,string); }
return 1;
}