Help me with mysql R40
#6

Quote:
Originally Posted by Rolux
Посмотреть сообщение
I meant the one which calls "Query_LoadCharacter".
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch (
dialogid)
    {
        case 
DIALOG_SELECT_CHARACTER_RP:
        {
            if(!
response) return 1;
            
playerMakingCharacter[playerid] = true;
            
playerCharacterStep[playerid] = 1;
            return 
1;
        }
        else
        {
                new 
string[128], thread[128];
            
TogglePlayerSpectating(playeridtrue);
            
playerMakingCharacter[playerid] = false;
            
playerCharacterStep[playerid] = 0;                
            
SetPlayerName(playeridCharacterLister[playerid][listitem]); 
                
            
mysql_format(g_SQLthreadsizeof(thread), "SELECT * FROM rp_characters WHERE char_Name = '%e' LIMIT 1"CharacterLister[playerid][listitem]);
            
mysql_tquery(g_SQLthread"Query_SelectCharacter""i"playerid); 
        }
    }
    return 
1;
}
forward Query_SelectCharacter(playerid);
public 
Query_SelectCharacter(playerid)
{
    if (!
cache_num_rows())
    {        
        new
            
liststring[128]
        ;
        
        for (new 
03++) {
            
format(liststringsizeof(liststring), "%s%s\n"liststringCharacterLister[playerid][i]); }
            
        return 
ShowPlayerDialog(playeridDIALOG_SELECT_CHARACTER_RPDIALOG_STYLE_LIST"Nhan vat:"liststring"Chon""Tro lai"); 
    }
    
    new 
rowsfieldsthread[128]; 
    
cache_get_row_count(rows);
    
cache_get_field_count(fields);
    
    if(
rows)
    {
        
mysql_format(g_SQLthreadsizeof(thread), "SELECT * FROM rp_characters WHERE char_Name = '%e'"GetPlayerNameEx(playerid));
        
mysql_tquery(g_SQLthread"Query_LoadCharacter""i"playerid);
    }
    
    return 
1;

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: 3 Guest(s)