test.pwn(248) : error 030: compound statement not closed at the end of file (started at line 234)
#1

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?
Reply
#2

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.
Reply
#3

Thanks, buddy.
Reply
#4

All working okay?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)