08.10.2012, 03:15
When it stops compiling it's because you have so much errors. Just take a look where you placed all dcmd. You placed them under OnPlayerCommandText, not in.
I'm not sure how you should place all the dcmds because I'm actually using ZCMD, but try it that way.
Edit: The codes written above OnPlayerCommandText, I think it should return a value.
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/tlaws", true))
{
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;
}
dcmd(xgoto,5,cmdtext);//and so on
dcmd(gpsfind,7,cmdtext);
return 0;
}
Edit: The codes written above OnPlayerCommandText, I think it should return a value.