whats wrong with it dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: whats wrong with it dialog (
/showthread.php?tid=292426)
whats wrong with it dialog -
[LHT]Bally - 23.10.2011
i have tried to m ake a dialog work but for some reason it just says unknown command
it is propbably something easy to do but i am just learning basics so bare with me
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Just lol :)");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
public OnPlayerCommandText(playerid, cmdtext[])
{if(!strcmp(command, "/Speedlimits", true))
{
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"{FF0000}SPEED LIMITS","{FF0000}HIGHWAYS 130KPH\nROADS 90KPH\nCITYS 60KPH","Back","Back");
return 1;
}
}
#endif
Re: whats wrong with it dialog -
Zonoya - 23.10.2011
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp(cmdtext, "/Speedlimits", true) == 0)
{
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"{FF0000}SPEED LIMITS","{FF0000}HIGHWAYS 130KPH\nROADS 90KPH\nCITYS 60KPH","Back","Back");
return 1;
}
}