enums and database saving
#5

and i assume i have to do something similar to this for the clan

case DIALOG_REGISTER:
{
if(!response) return Kick(playerid);

szQuery[0] = EOS;
PlayerInfo[playerid][pLevel] = 1;
IsPlayerLogged[playerid] = 1;

ShowPlayerDialog(playerid, DIALOG_LANGUAGE, DIALOG_STYLE_MSGBOX, "{FFFFFF}Registering", "Choose the language you speak.", "Romana", "English");
mysql_format(mysql, szQuery, 256, "INSERT INTO `users` (`Username`, `Password`, `Level`) VALUES ('%e', '%e', '1')", GetName(playerid), inputtext);
new Cache: result = mysql_query(mysql, szQuery);
new i = cache_insert_id();
cache_delete(result);
PlayerInfo[playerid][pID] = i;
}
Reply


Messages In This Thread
enums and database saving - by bosmania - 25.02.2019, 18:44
Re: enums and database saving - by feartonyb - 26.02.2019, 11:29
Re: enums and database saving - by bosmania - 26.02.2019, 12:13
Re: enums and database saving - by bosmania - 26.02.2019, 13:00
Re: enums and database saving - by bosmania - 26.02.2019, 13:03
Re: enums and database saving - by feartonyb - 26.02.2019, 18:26
Re: enums and database saving - by bosmania - 27.02.2019, 15:16

Forum Jump:


Users browsing this thread: 1 Guest(s)