coding help
#6

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.

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;
}
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.
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)