all my commands have been disabled. help?
#10

I'm not sure, but if I remember good, you can't use spaces in commands, so you need to do it inside a command:
pawn Code:
if(!strcmp(cmdtext, "/911-police", true, 11)) {
    if(!strcmp(cmdtext[12], "187", true)) {  // If the player typed /911-police 187
        new string[128], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
        SendClientMessage(playerid, -1, "Dispatcher: Ok, Please remain calm and stay at your location, assistance will be there shortly.");
        format(string,sizeof string, "Police Dispatcher: All units, we have a Homicide at %s's location, Requesting EMS and Police for assistnace.",pName);
        SendClientMessageToAll(0xFF0000AA,string);
    }
    if(!strcmp(cmdtext[12], "211", true)) {  // If the player typed /911-police 211
        // blabla
    }
    return 1;
}
Been out of scripting for a while, but this code should work I guess.
Reply


Messages In This Thread
all my commands have been disabled. help? - by xXitsgodzillaXx - 28.04.2012, 15:00
Re: all my commands have been disabled. help? - by ViniBorn - 28.04.2012, 15:56
Re: all my commands have been disabled. help? - by xXitsgodzillaXx - 28.04.2012, 16:06
Re: all my commands have been disabled. help? - by ViniBorn - 28.04.2012, 16:12
Re: all my commands have been disabled. help? - by xXitsgodzillaXx - 28.04.2012, 16:33
Re: all my commands have been disabled. help? - by Rudy_ - 28.04.2012, 16:34
Re: all my commands have been disabled. help? - by xXitsgodzillaXx - 28.04.2012, 16:40
Re: all my commands have been disabled. help? - by admantis - 28.04.2012, 16:41
Re: all my commands have been disabled. help? - by ViniBorn - 28.04.2012, 16:49
Re: all my commands have been disabled. help? - by Mean - 28.04.2012, 16:56
Re: all my commands have been disabled. help? - by xXitsgodzillaXx - 28.04.2012, 17:29
Re: all my commands have been disabled. help? - by Rudy_ - 28.04.2012, 17:31
Re: all my commands have been disabled. help? - by xXitsgodzillaXx - 28.04.2012, 17:39
Re: all my commands have been disabled. help? - by Rudy_ - 28.04.2012, 17:42
Re: all my commands have been disabled. help? - by xXitsgodzillaXx - 28.04.2012, 17:50
Re: all my commands have been disabled. help? - by Mean - 28.04.2012, 18:32
Re: all my commands have been disabled. help? - by Scenario - 28.04.2012, 18:37
Re: all my commands have been disabled. help? - by Mean - 28.04.2012, 18:53
Re: all my commands have been disabled. help? - by xXitsgodzillaXx - 28.04.2012, 20:17
Re: all my commands have been disabled. help? - by xXitsgodzillaXx - 29.04.2012, 01:19
Re: all my commands have been disabled. help? - by Rudy_ - 29.04.2012, 04:32

Forum Jump:


Users browsing this thread: 1 Guest(s)