Question on how can I FIX my command
#2

The 0 is the level that a player got to be to use that command .

Probably the problem is on your script . You don't have to use the things there , you are wrong in all of it .

pawn Код:
if(strcmp(cmd, "/tlaws", true) == 0) //  
    {
        if(IsPlayerConnected(playerid))
        {
            ShowPlayerDialog(playerid,1523,DIALOG_STYLE_MSGBOX,"{FF0000}Traffic Laws{FFFFFF}","\n\1. ALWAYS stop to red. You may turn right on red after coming to a full stop if the road is clear.\n2. Civilians have ALWAYS priority,stop and let them pass.\n3. Keep in the Speed limits,in-town limit is 50mp/h and on the high traffic roads is 90-120mp/h\n4. Always Yeld to emegercy vehicles such LSPD,LSFD,they have priority.\n5. ALWAYS drive on the right side of the road.","AGREE","Close");
          }
        return 1;
    }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)// They pressed the first button.
    {
    switch(dialogid)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
        {
        case 1523:// Our dialog!
            {
            switch(listitem)// Checking which listitem was selected
            {
                case 0:// The first item listed
                {
                    // Codes here ETC ..
                }
                case 1: // The second item listed
                {
                    // Codes here ETC ..
                }
                case 2: // The third item listed
                {
                    // Codes here ETC ..
                case 3: // The third item listed
                    {
                    // Codes here ETC ..
                }
                case 4:
                    {
                    // Codes here ETC ..
                    }
            }
            }
    }
    }
    return 1;
}
Try to use this and edit the things in it
Reply


Messages In This Thread
Question on how can I FIX my command - by geohareas - 18.01.2013, 19:02
Re: Question on how can I FIX my command - by Private200 - 18.01.2013, 19:09
Re: Question on how can I FIX my command - by geohareas - 18.01.2013, 19:31
Re: Question on how can I FIX my command - by Private200 - 18.01.2013, 19:36
Re: Question on how can I FIX my command - by B-Matt - 18.01.2013, 19:44
Re: Question on how can I FIX my command - by Patrick - 18.01.2013, 19:44
Re: Question on how can I FIX my command - by MP2 - 18.01.2013, 20:05
Re: Question on how can I FIX my command - by geohareas - 19.01.2013, 20:26
Re: Question on how can I FIX my command - by Chenko - 19.01.2013, 23:18
Re: Question on how can I FIX my command - by LarzI - 19.01.2013, 23:36

Forum Jump:


Users browsing this thread: 1 Guest(s)