[Ajuda] Comando sem erros, mas nгo funciona bem.
#1

pawn Код:
CMD:dararma(playerid, params[])
{
    new playa;
    new gun;
    new ammo;
    new sendername[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME];
    new string[256];
    SendClientMessage(playerid, COLOR_WHITE, "________________________[ Dar Armas ]________________________");
    SendClientMessage(playerid, COLOR_WHITE, "Comando: /dararma [playerid/PartOfName] [weaponid] [balas]");
    SendClientMessage(playerid, COLOR_WHITE, "3(Club) | 4(knife) | 5(bat) | 6(Shovel) | 7(Cue) | 8(Katana) | 10-13(Dildo) | 14(Flowers)");
    SendClientMessage(playerid, COLOR_WHITE, "16(Grenades) | 18(Molotovs) | 22(Pistol) | 23(SPistol) 24(Eagle) | 25(Shotgun) | 27(SPAS12)");
    SendClientMessage(playerid, COLOR_WHITE, "29(MP5) | 30(AK47) | 31(M4) | 33(Rifle) | 34(Sniper) | 35(Bazooka) | 37(Flamethrower)");
    SendClientMessage(playerid, COLOR_WHITE, "41(Spray) | 42(Fire Extinguisher) | 43(Camera) | 46(Parachute)");
    SendClientMessage(playerid, COLOR_WHITE, "______________________________________________________________");
    if(gun > 1||gun < 47)
    if(ammo <1||ammo > 999)
    { SendClientMessage(playerid, COLOR_WHITE, "Tens de escolher entre , 1-999 balas."); return 1; }
   
    if(PlayerInfo[playerid][Adminlevel] < 1) return SendClientMessage(playerid,COLOR_RED,".:: You are not authorized to use this command ::.");
    if(sscanf(params, "iab",playerid, gun, ammo)) return SendClientMessage(playerid, COLOR_WHITE, "Comando: /dararma [ID] [Arma] [Balas]");

    GetPlayerName(playa, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, 256, "[%s]deu ao player %s a arma - %d com %d balas.", sendername, giveplayer, gun, ammo);
    SendClientMessage(playerid, COLOR_WHITE, string);
    GivePlayerWeapon(playa, gun, ammo);
    return 1;
}
Sempre que digito o comando /dararma [id] [id Arma] [balas]
Aparece-me isto:

pawn Код:
SendClientMessage(playerid, COLOR_WHITE, "________________________[ Dar Armas ]________________________");
    SendClientMessage(playerid, COLOR_WHITE, "Comando: /dararma [playerid/PartOfName] [weaponid] [balas]");
    SendClientMessage(playerid, COLOR_WHITE, "3(Club) | 4(knife) | 5(bat) | 6(Shovel) | 7(Cue) | 8(Katana) | 10-13(Dildo) | 14(Flowers)");
    SendClientMessage(playerid, COLOR_WHITE, "16(Grenades) | 18(Molotovs) | 22(Pistol) | 23(SPistol) 24(Eagle) | 25(Shotgun) | 27(SPAS12)");
    SendClientMessage(playerid, COLOR_WHITE, "29(MP5) | 30(AK47) | 31(M4) | 33(Rifle) | 34(Sniper) | 35(Bazooka) | 37(Flamethrower)");
    SendClientMessage(playerid, COLOR_WHITE, "41(Spray) | 42(Fire Extinguisher) | 43(Camera) | 46(Parachute)");
    SendClientMessage(playerid, COLOR_WHITE, "______________________________________________________________");
Ajuda ?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)