How can i make this? - 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: How can i make this? (
/showthread.php?tid=424197)
How can i make this? -
Don_Cage - 21.03.2013
I want to make a register test you must pass before you can register your account, but how can i make it with dialog input and after all the questions an administrator can check the awnsers and then choose if the player can register or not?
Re: How can i make this? -
Glad2BeHere - 21.03.2013
Use Y_INI/dini/mysql and create variables to save player answers in a separate folder and make commands to read the data and u can make a variable that approves this.... and if the variable is approved then the players name is allowed to be used/register
Re: How can i make this? -
Don_Cage - 21.03.2013
Could you show like an example and cant it be done without mysql?
Re: How can i make this? -
Glad2BeHere - 21.03.2013
YINI
https://sampforum.blast.hk/showthread.php?tid=273088 // use this to learn how to load and save data.....
https://sampforum.blast.hk/showthread.php?tid=386144 //how to edit offline stats..
pawn Код:
enum PQInfo
{
a1[256],
a2[256],
a3[256],
approved
}
new QAnswers[MAX_PLAYERS][PQInfo];
stock Path(playerid)
{
new string[256], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(string, sizeof(string), "Quiz/%s.ini",playername);
return string;
}
Re: How can i make this? -
Jamixd1 - 21.03.2013
lool sorry about the comment but "Glad2BeHere" your avatar is funny as hell lool
Re: How can i make this? -
Don_Cage - 21.03.2013
Ah, Thanks!