14.06.2013, 16:45
Hello sa-mp players/scripters.
I've got an another question/problem..
I've tried everything..
So i hoped somebody could help me.
The problem..
Well, OnplayerSpawn/Onplayerrequestclass..
I'm checking if the userfile got registered or not.
The problem.. If you are registered, it's showing dialog 2 correctly.
But if you're not registered.. it wont show any dialog..
Stock SSSShowDialog:
Ondialogresponse:
It isnt showing any errors. :S
So ehh.. I dont know what to do.
I've got an another question/problem..
I've tried everything..
So i hoped somebody could help me.
The problem..
Well, OnplayerSpawn/Onplayerrequestclass..
I'm checking if the userfile got registered or not.
pawn Код:
if(!dini_Exists(file))
{
SSSShowDialog(playerid, 5401);
return 1;
}
else
{
SSSShowDialog(playerid, 2);
}
But if you're not registered.. it wont show any dialog..
Stock SSSShowDialog:
pawn Код:
stock SSSShowDialog(playerid, dialogid)
{
new string[1024], String[1024], String2[1024], String3[1024], line1[256];
switch(dialogid)
{
case 5401: // Rules Agree
{
format(string, sizeof(string), "Welcome to {00FF00}Europe Gaming Roleplay{FFFFFF} %s!\n\nThe registration process will be as following:\n\nStep 1: Agreement on server rules.\nStep 2: A roleplay test that consists of 5 random questions.\nStep 3: Password selection.\nStep 4: Gender selection.\nStep 5: Age selection.\nStep 6: The tutorial\n\nGood luck!", RPN(playerid));
ShowPlayerDialog(playerid, 5401, DIALOG_STYLE_MSGBOX, "Europe Gaming Roleplay",string, "Continue", "Quit");
}
// Another dialogs that are working correctly.
pawn Код:
else if(dialogid == 5401) //welcome
{
if(response)
{
SSSShowDialog(playerid, 5402);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}You have chosen to quit the server.");
Kick(playerid);
}
}
It isnt showing any errors. :S
So ehh.. I dont know what to do.