Help me with mysql R40
#1

Код HTML:
[WARNING] mysql_connect: no password specified
[ERROR] cache_get_value_name_int: no active cache
Код HTML:
forward Query_LoadCharacter(playerid);
public Query_LoadCharacter(playerid)
{	
    new rows = cache_num_rows();

    if(!rows) 
    { 
        printf("[SERVER]: No clans were loaded from the MYSQL Database."); 

        return 0; 
    } 

    for (new i = 0; i < rows; i ++) 
    {
		cache_get_value_name_int(i, "char_ID", CharacterInfo[i][cID]);
		cache_get_value_name_int(i, "char_Admin", CharacterInfo[i][cAdmin]);
		cache_get_value_name_int(i, "char_Skin", CharacterInfo[i][cSkin]);
		cache_get_value_float(i, "char_PosX", CharacterInfo[i][cPos][0]);
		cache_get_value_float(i, "char_PosY", CharacterInfo[i][cPos][1]);
		cache_get_value_float(i, "char_PosZ", CharacterInfo[i][cPos][2]);
		cache_get_value_float(i, "char_PosA", CharacterInfo[i][cPos][3]);	
		cache_get_value_name_int(i, "char_Interior", CharacterInfo[i][cInterior]);
	    cache_get_value_name_int(i, "char_VW", CharacterInfo[i][cVW]);
		cache_get_value_name_int(i, "char_Age", CharacterInfo[i][cAge]);
		cache_get_value_float(i, "char_Health", CharacterInfo[i][cHealth]);
		cache_get_value_float(i, "char_Armour", CharacterInfo[i][cArmour]);
		cache_get_value_name_int(i, "char_Money", CharacterInfo[i][cMoney]);
	}
	TogglePlayerSpectating(playerid, false);
	LoadCharacter(playerid);
	return 1;
}
Someone help me.
Reply


Messages In This Thread
Help me with mysql R40 - by Libbyphay - 05.01.2019, 11:40
Re: Help me with mysql R40 - by Libbyphay - 05.01.2019, 11:47
Re: Help me with mysql R40 - by Rolux - 05.01.2019, 11:57
Re: Help me with mysql R40 - by Libbyphay - 05.01.2019, 12:01
Re: Help me with mysql R40 - by Rolux - 05.01.2019, 12:07
Re: Help me with mysql R40 - by Libbyphay - 05.01.2019, 12:15
Re: Help me with mysql R40 - by Rolux - 05.01.2019, 12:24
Re: Help me with mysql R40 - by Libbyphay - 05.01.2019, 12:29
Re: Help me with mysql R40 - by Rolux - 05.01.2019, 12:39
Re: Help me with mysql R40 - by Libbyphay - 05.01.2019, 12:43
Re: Help me with mysql R40 - by Libbyphay - 05.01.2019, 12:47
Re: Help me with mysql R40 - by Libbyphay - 05.01.2019, 13:45

Forum Jump:


Users browsing this thread: 1 Guest(s)