31.10.2010, 09:39
i rechanged a bit to this:
and i got 1 error
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
#define COLOR_YELLOW 0xFFFF00AA
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" dialog");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
ShowPlayerDialog(playerid,100,DIALOG_STYLE_MSGBOX,"Rules","1.Cheating and hacking - Permban\n2.Write on the forum if you want help!\nhttp://freeroam-samp.ucoz.com/forum\n3.Race on LS only\n4.Respect The Administrators and the moderators!\n5.Report asap if you see glitch/bug/cheaters/hackers!","Agree","Deny");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 100)
{
if(response)
{
SendClientMessageToAll(COLOR_YELLOW,"thx for accept rules");
}
else if(response == 0)
{
SendClientMessageToAll(COLOR_YELLOW,"you have not accept the rules kick");
Kick(playerid);
}
}
return 1;
}
Код:
C:\Documents and Settings\Old Smurf\My Documents\Hдmtade filer\gta\freeroam\filterscripts\dialog.pwn(19) : error 021: symbol already defined: "ShowPlayerDialog" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.

