[HELP] Commands Again...
#3

That's because you have bad indentation:
pawn Код:
if(strcmp(cmdtext, "/medic", true) == 0)
    {
        SetJob(1,playerid);
        SetPlayerColor(playerid,0x33AA33AA);
        GameTextForPlayer(playerid,"~w~You Have Joined The ~n~~g~Medic~w~ Team",3000,4);
        new pName[MAX_PLAYER_NAME];
        new string[48];
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "[ %s ] has joined the Medic Team.", pName);
        SendClientMessageToAll(0xFFFFFFAA, string);
        SetPlayerSkin(playerid,275);
        GivePlayerWeapon(playerid, 3, 1);
        return 1;
    }
    if(strcmp(cmdtext, "/trucker", true) == 0)
    {
        SetJob(1,playerid);
        SetPlayerColor(playerid,0x33AA33AA);
        GameTextForPlayer(playerid,"~w~You Have Joined The ~n~~r~Trucker~w~ Team",3000,4);
        new pName[MAX_PLAYER_NAME];
        new string[48];
        GetPlayerName(playerid, pName, sizeof(pName));
        format(string, sizeof(string), "[ %s ] has joined the Trucker Team.", pName);
        SendClientMessageToAll(0xFFFFFFAA, string);
        SetPlayerSkin(playerid,275);
        GivePlayerWeapon(playerid, 3, 1);
        return 1;
    }
is correct.
Reply


Messages In This Thread
[HELP] Commands Again... - by Smiths - 13.09.2009, 14:10
Re: [HELP] Commands Again... - by Smiths - 13.09.2009, 14:36
Re: [HELP] Commands Again... - by Clavius - 13.09.2009, 14:37
Re: [HELP] Commands Again... - by Smiths - 13.09.2009, 18:39
Re: [HELP] Commands Again... - by Clavius - 13.09.2009, 19:48

Forum Jump:


Users browsing this thread: 1 Guest(s)