whats wrong with it dialog
#1

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

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;
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)