test.pwn(248) : error 030: compound statement not closed at the end of file (started at line 234) -
davelord - 09.01.2012
Okay, so, my ending code is:
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
SendClientMessage(playerid, COLOR_WHITE, "So your a male.");
SetPlayerSkin(playerid, 240);
//PlayerInfo[playerid][pGender] = 0;
//PlayInfo[playerid][pSkin] = 240;
}
if(!response)
{
SendClientMessage(playerid, COLOR_WHITE, "So your a female.");
SetPlayerSkin(playerid, 233);
return 1;
}
Now, how can I close it?
Re: test.pwn(248) : error 030: compound statement not closed at the end of file (started at line 234) -
MR,Mr - 09.01.2012
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
SendClientMessage(playerid, COLOR_WHITE, "So your a male.");
SetPlayerSkin(playerid, 240);
//PlayerInfo[playerid][pGender] = 0;
//PlayInfo[playerid][pSkin] = 240;
}
if(!response)
{
SendClientMessage(playerid, COLOR_WHITE, "So your a female.");
SetPlayerSkin(playerid, 233);
}
}
return 1;
}
Sorry for the indentation, it isn't easy inside of forum posts.
Re: test.pwn(248) : error 030: compound statement not closed at the end of file (started at line 234) -
davelord - 09.01.2012
Thanks, buddy.
Re: test.pwn(248) : error 030: compound statement not closed at the end of file (started at line 234) -
MR,Mr - 09.01.2012
All working okay?