31.10.2010, 00:39
i did something wrong? (i think 100% yes)
here is the code
pawn Код:
C:\Documents and Settings\Old Smurf\My Documents\Hдmtade filer\gta\freeroam\filterscripts\dialog.pwn(24) : error 025: function heading differs from prototype
C:\Documents and Settings\Old Smurf\My Documents\Hдmtade filer\gta\freeroam\filterscripts\dialog.pwn(24) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Old Smurf\My Documents\Hдmtade filer\gta\freeroam\filterscripts\dialog.pwn(26) : error 010: invalid function or declaration
C:\Documents and Settings\Old Smurf\My Documents\Hдmtade filer\gta\freeroam\filterscripts\dialog.pwn(28) : error 010: invalid function or declaration
C:\Documents and Settings\Old Smurf\My Documents\Hдmtade filer\gta\freeroam\filterscripts\dialog.pwn(32) : error 010: invalid function or declaration
C:\Documents and Settings\Old Smurf\My Documents\Hдmtade filer\gta\freeroam\filterscripts\dialog.pwn(37) : error 010: invalid function or declaration
C:\Documents and Settings\Old Smurf\My Documents\Hдmtade filer\gta\freeroam\filterscripts\dialog.pwn(39) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" dialog");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Rules", "(IMPORTANT!!: ONLY ENGLISH IN CHAT!) 1.Cheating and hacking - Permban 2.Write on the forum if you want help! 3.Race on LS only 4.Respect The Administrators and the moderators! 5.Report asap if you see glitch/bug/cheaters/hackers!", "Continue", "Quit");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
SendClientMessage(playerid,0x008000FF, "Enjoy your stay!");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You don't want to follow the rules! Goodbye");
Kick(playerid);
}
return 1;
}
return 0;
}