coding help
#1

ok i am trying to make a tlaws command

like this but i dont if it is right and when i put it under "public OnPlayerCommandText(playerid, cmdtext[])"

the cleo compiler does not respond and does not work
maybe tv help will work

this is the code

Code:
if(strcmp(cmdtext, "/tlaws"))
     {
       SendClientMessage(playerid, 0xFFFFFFFF, "Always stop at red lights");
       SendClientMessage(playerid, 0xFFFFFFFF, "Don't act like a goverment first responder");
       SendClientMessage(playerid, 0xFFFFFFFF, "Don't race on any road unless you get a permit from the goverment");
       SendClientMessage(playerid, 0xFFFFFFFF, "Make sure you always drive on the right side of the road unless permited");
       SendClientMessage(playerid, 0xFFFFFFFF, "Speed limits-50 KPH unpaved Roads,35 KPH Construction Zones,");
       SendClientMessage(playerid, 0xFFFFFFFF, "85 KPH Two Lane City Roads,110 MPH on Highways, Freeways, Interstates");
       return 1;
     }
     return 0;
}
Reply


Messages In This Thread
coding help - by nickstar - 08.10.2012, 01:40
Re : coding help - by lelemaster - 08.10.2012, 02:52
Re: coding help - by nickstar - 08.10.2012, 02:54
Re : coding help - by lelemaster - 08.10.2012, 02:57
Re: coding help - by nickstar - 08.10.2012, 03:09
Re : coding help - by lelemaster - 08.10.2012, 03:15
Re: coding help - by nickstar - 08.10.2012, 03:20
Re : coding help - by lelemaster - 08.10.2012, 03:22
Re : coding help - by lelemaster - 08.10.2012, 03:42

Forum Jump:


Users browsing this thread: 1 Guest(s)