Age Registration not updating - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Age Registration not updating (
/showthread.php?tid=603408)
Age Registration not updating -
eikzdej - 23.03.2016
Hi! I recently added Age in my server but somehow i can't make it work. (not update in my sql) Here's my script. Thanks for your help!
Quote:
if (dialogid == DIALOG_AGE)
{
if (!response) return Kick(playerid);
if (strval(inputtext) < 7)
{
ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "Age", "{FF0000}Invalid Age. Your age must be 7 and up\n{FFFFFF}Please enter your age.", "Submit", "Quit");
return 0;
}
Player[playerid][Age] = strval(inputtext);
}
|
Re: Age Registration not updating -
Jack_Leslie - 23.03.2016
Show us your SQL code, or the code that's calling the function that saves the SQL.
Re: Age Registration not updating -
eikzdej - 23.03.2016
Nvm Jack, got it fixed. thank you.