15.05.2013, 13:45
My pawno crashes when I try to compile my Gamemode.
I've scripted a msgbox dialog in it, since than it won't compile properly, could someone take a quick look at it on what the cause could be and how I'd be able to fix it?
All of the dialog codes:
At the top of the page somewhere
[Don't mind the 4th dialog it spaces, it bugs on the forum]
Under OnDialogResponse: (Obviously )
Under OnPlayerCommandText:
I've scripted a msgbox dialog in it, since than it won't compile properly, could someone take a quick look at it on what the cause could be and how I'd be able to fix it?
All of the dialog codes:
At the top of the page somewhere
[Don't mind the 4th dialog it spaces, it bugs on the forum]
PHP код:
/* DIALOGS */
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define DIALOG_AGE 3
#define DIALOG_SEX 4
#define DIALOG_CREDITS 5
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_CREDITS)
{
if(reponse)
{
SendClientMessage(playerid, COLOR_GREY, "You've read the credits.");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You've read the credits.");
}
return 1;
}
return 0;
}
PHP код:
CMD:credits(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_CREDITS, DIALOG_STYLE_MSGBOX, "Credits of Vertical County Roleplay", "MADE BY:\n2Jay Glenson\n2\n2Alternative Developement:\n2Classified\n2\n2Remaining Credits:\n2******, etc (includes)", "Okay" "Cancel");
return 1;
}