Thread: Help me Mysql
View Single Post
Old 10/07/2019, 08:18 AM   #1
Libbyphay
Big Clucker
 
Join Date: May 2017
Posts: 194
Reputation: 0
Default Help me Mysql

PHP Code:
forward Characters_Menu(playerid);
public 
Characters_Menu(playerid)
{
    new 
str[64], dialog[512], C_IDC_LVLC_Name[32];

    
format(strsizeof(str), "C_ID\tCharacter Name\tLevel\n");
    
strcat(dialogstrsizeof(dialog));

    for( new 
id 0id cache_num_rows(); id++)
    {
        
cache_get_value(id"ID"C_ID);
        
cache_get_value(id"Name"C_Name32);
        
cache_get_value(id"Level"C_LVL);

        
format(strsizeof(str), "[%d] \t%s\t%d\n"C_IDC_NameC_LVL);
        
strcat(dialogstrsizeof(dialog));
    }

    if(
cache_num_rows() < 3
    {
        
format(strsizeof(str), " \tCreate Character\t\n");
        
strcat(dialogstrsizeof(dialog));
    }

    
format(strsizeof(str), "%s's Characters"Account[playerid][Name]);
    
Dialog_Show(playeridCharacter_SelectDIALOG_STYLE_TABLIST_HEADERSstrdialog"Select","Leave");

    return 
1;

PHP Code:
C:\Users\Administrator\Desktop\SAMP\gamemodes\SCRP-R39.pwn(1094) : error 035argument type mismatch (argument 3)
C:\Users\Administrator\Desktop\SAMP\gamemodes\SCRP-R39.pwn(1096) : error 035argument type mismatch (argument 3
HTML Code:
cache_get_value(id, "ID", C_ID);
cache_get_value(id, "Level", C_LVL);
I updated Mysql R39 to R41-4, but I can't fix it

Last edited by Libbyphay; 10/07/2019 at 09:01 AM.
Libbyphay is offline   Reply With Quote