[Duda] їEn que fallo?
#1

Estoy haciendo un comando que verifica el arma y segun el arma que tienes te da municion. Verifica el arma correctamente pero me da error al intentar darle municion.


pawn Код:
if (strcmp("/Recargar", cmdtext, true, 10) == 0)
    {
        new gunAmmo = GetPlayerAmmo(playerid);
if(GetPlayerWeapon(playerid) >= 1)
{
        new gunID = GetPlayerWeapon(playerid);
        new gunname[32];
        GetWeaponName(gunID, gunname, sizeof(gunname));
        format(string, sizeof(string), " Recargaste tu %s", NombreEx(playerid),gunname);
        ProxDetector(12.0, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
        GivePlayerWeapon(playerid, gunname, 6);//Aqui el fallo
        return 1;
        }
return SendClientMessage(playerid, Rojo, "Necesitas un arma");
}
їComo lo soluciono?
Reply


Messages In This Thread
[Duda] їEn que fallo? - by Jose_grana - 09.10.2012, 21:49
Re: [Duda] їEn que fallo? - by admantis - 09.10.2012, 22:05
Respuesta: [Duda] їEn que fallo? - by Jose_grana - 09.10.2012, 22:15

Forum Jump:


Users browsing this thread: 2 Guest(s)