Question on how can I FIX my command
#1

Hello guys,

I got this command:
PHP код:
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.\n\
            2. Civilians have ALWAYS priority,stop and let them pass.\n\
            3. Keep in the Speed limits,in-town limit is 50mp/h and on the high traffic roads is 90-120mp/h\n\
            4. Always Yeld to emegercy vehicles such LSPD,LSFD,they have priority.\n\
            5. ALWAYS drive on the right side of the road."
,"AGREE","");
          }
        return 
1;
    } 
But..i was wondering why everytime i am typing it in-game i get the well known error "Unknown command?".
Actually can you help me fix this?Also i was wondering what does this zero mean?
PHP код:
if(strcmp(cmd"/tlaws"true) == 0
Thank you for reading my post!!


Best regards,
George
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)