C:\Users\User\Desktop\FreeRoam\gamemodes\freeroam.pwn(1957) : warning 217: loose indentation C:\Users\User\Desktop\FreeRoam\gamemodes\freeroam.pwn(1957) : error 029: invalid expression, assumed zero C:\Users\User\Desktop\FreeRoam\gamemodes\freeroam.pwn(1957) : error 004: function "OnPlayerClickPlayer" is not implemented C:\Users\User\Desktop\FreeRoam\gamemodes\freeroam.pwn(1961) : error 030: compound statement not closed at the end of file (started at line 1928)
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
forward OnPlayerClickPlayer(playerid, clickedplayerid, source);
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
Put this:
PHP код:
|
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_HELP) { if(response) { if(listitem == 0) { ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: General", "Freeroam is owned by biggiephil.\nThe server has maps, teleports and more!", "Close", ""); } if(listitem == 1) { ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: Server Commands", "/afk\n/credits\n/whosawesome", "Close", ""); } if(listitem == 2) { ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: Teleport Commands", "/lva\n/sfa\n/lsa\n/bb\n/aa\n/aaj\n/lvj", "Close", ""); } if(listitem == 3) { ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: Vehicle Commands", "/flip\n/fix\n/flip", "Close", ""); } if(listitem == 4) { ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: Player Animations", "/sit\n/pee\n/wd", "Close", ""); } } return 1; }
C:\Users\User\Desktop\FreeRoam\gamemodes\freeroam.pwn(1957) : warning 217: loose indentation C:\Users\User\Desktop\FreeRoam\gamemodes\freeroam.pwn(1957) : error 029: invalid expression, assumed zero C:\Users\User\Desktop\FreeRoam\gamemodes\freeroam.pwn(1957) : error 004: function "OnPlayerClickPlayer" is not implemented C:\Users\User\Desktop\FreeRoam\gamemodes\freeroam.pwn(1961) : error 030: compound statement not closed at the end of file (started at line 1928) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_HELP)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: General", "Freeroam is owned by biggiephil.\nThe server has maps, teleports and more!", "Close", "");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: Server Commands", "/afk\n/credits\n/whosawesome", "Close", "");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: Teleport Commands", "/lva\n/sfa\n/lsa\n/bb\n/aa\n/aaj\n/lvj", "Close", "");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: Vehicle Commands", "/flip\n/fix\n/flip", "Close", "");
}
if(listitem == 4)
{
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: Player Animations", "/sit\n/pee\n/wd", "Close", "");
}
}
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_HELP)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: General", "Freeroam is owned by biggiephil.\nThe server has maps, teleports and more!", "Close", "");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: Server Commands", "/afk\n/credits\n/whosawesome", "Close", "");
}
if(listitem == 2)
{
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: Teleport Commands", "/lva\n/sfa\n/lsa\n/bb\n/aa\n/aaj\n/lvj", "Close", "");
}
if(listitem == 3)
{
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: Vehicle Commands", "/flip\n/fix\n/flip", "Close", "");
}
if(listitem == 4)
{
ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX, "Freeroam: Player Animations", "/sit\n/pee\n/wd", "Close", "");
}
}
}// You forgot this one
return 1;
}