Whats the problem ?
#3

Try this:

Код:
pub:OnPlayerAccountLoaded(playerid) {
	new str[512];
    if(cache_num_rows() == 1)
    {
	cache_get_value_int(0, "ID", Account[playerid][aID]);
	cache_get_value(0, "username", Account[playerid][ausername], 128);
	cache_get_value(0, "password", Account[playerid][apassword], 128);
	cache_get_value(0, "email", Account[playerid][aemail], 128);
	cache_get_value_int(0, "jegyezve", Account[playerid][ajegyezve]);
	cache_get_value(0, "IP", Account[playerid][IP], 16);
        CancelSelectTextDraw(playerid);
        SpawnPlayer(playerid);
        SendClientMessage(playerid,COLOR_GREEN,"Sikeresen bejelentkeztйl!");
	format(str, sizeof(str), "ID: %d | Name: %s | Password: %s | Email: %s | jegyezve: %s | IP: %s", Account[playerid][aID],Account[playerid][ausername],Account[playerid][apassword],Account[playerid][aemail],Account[playerid][ajegyezve],Account[playerid][IP]);
	SendClientMessage(playerid,COLOR_GREEN,str);
        LoadStats(playerid);
    } else SendClientMessage(playerid, COLOR_LIGHTRED, "Hiba: Hibбs felhasznбlуnйv vagy jelszу!");
    return 1;
}
Reply


Messages In This Thread
Whats the problem ? - by Develerux - 09.02.2017, 17:24
Re: Whats the problem ? - by Develerux - 09.02.2017, 19:52
Re: Whats the problem ? - by Macronix - 09.02.2017, 20:38

Forum Jump:


Users browsing this thread: 1 Guest(s)