08.01.2011, 09:27
IT still gives the same message everytime.
Код:
public OnPlayerConnect(playerid) { logged[playerid] = 0; new name[MAX_PLAYER_NAME],string[32]; SetPlayerColor(playerid, COLOR_PINK); GetPlayerName(playerid,name,sizeof(name)); format(string,sizeof(string),"%s has joined the server",name); SendClientMessageToAll(COLOR_GREY,string); if (dini_Exists(udb_encode(playername))) { SendClientMessage(playerid,COLOR_RED,"Please login! Use /login [Password]"); } else SendClientMessage(playerid,COLOR_RED,"Ur not registered! Please use /register [Password]"); return 1; }