10.07.2019, 08:18
(
Last edited by Libbyphay; 10/07/2019 at 09:01 AM.
)
PHP Code:
forward Characters_Menu(playerid);
public Characters_Menu(playerid)
{
new str[64], dialog[512], C_ID, C_LVL, C_Name[32];
format(str, sizeof(str), "C_ID\tCharacter Name\tLevel\n");
strcat(dialog, str, sizeof(dialog));
for( new id = 0; id < cache_num_rows(); id++)
{
cache_get_value(id, "ID", C_ID);
cache_get_value(id, "Name", C_Name, 32);
cache_get_value(id, "Level", C_LVL);
format(str, sizeof(str), "[%d] \t%s\t%d\n", C_ID, C_Name, C_LVL);
strcat(dialog, str, sizeof(dialog));
}
if(cache_num_rows() < 3)
{
format(str, sizeof(str), " \tCreate Character\t\n");
strcat(dialog, str, sizeof(dialog));
}
format(str, sizeof(str), "%s's Characters", Account[playerid][Name]);
Dialog_Show(playerid, Character_Select, DIALOG_STYLE_TABLIST_HEADERS, str, dialog, "Select","Leave");
return 1;
}
PHP Code:
C:\Users\Administrator\Desktop\SAMP\gamemodes\SCRP-R39.pwn(1094) : error 035: argument type mismatch (argument 3)
C:\Users\Administrator\Desktop\SAMP\gamemodes\SCRP-R39.pwn(1096) : error 035: argument type mismatch (argument 3)
HTML Code:
cache_get_value(id, "ID", C_ID); cache_get_value(id, "Level", C_LVL);