Erros que ta dando meus amigos
linha do erro e o sistema agora
alguem que possa me ajudar?
Quote:
C:\Users\Lan\Desktop\GTA Rio Facções\gamemodes\gtafaccoes.pwn(8962) : warning 219: local variable "GivePlayerWeapon" shadows a variable at a preceding level C:\Users\Lan\Desktop\GTA Rio Facções\gamemodes\gtafaccoes.pwn(8962) : error 001: expected token: ";", but found "(" C:\Users\Lan\Desktop\GTA Rio Facções\gamemodes\gtafaccoes.pwn(8962) : warning 215: expression has no effect C:\Users\Lan\Desktop\GTA Rio Facções\gamemodes\gtafaccoes.pwn(8962) : error 029: invalid expression, assumed zero C:\Users\Lan\Desktop\GTA Rio Facções\gamemodes\gtafaccoes.pwn(8962) : warning 215: expression has no effect C:\Users\Lan\Desktop\GTA Rio Facções\gamemodes\gtafaccoes.pwn(8962) : error 001: expected token: ";", but found "]" C:\Users\Lan\Desktop\GTA Rio Facções\gamemodes\gtafaccoes.pwn(8962) : fatal error 107: too many error messages on one line |
PHP Code:
new Arma[14], Municion[14];
PHP Code:
stock DropWeapons(playerid)
{
new Arma[14], Municion[14];
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
for(new wep = 0; wep < 14; wep ++)
{
// Obtener la informacion de armas del jugador
GetPlayerWeaponData(playerid, wep, Arma[wep], Municion[wep]);
if(PickupID[Arma[wep]] != -1)
{
new model = PickupID[Arma[wep]];
new randid = random(300);
new Float:X2 = X + (random(3) - random(3));
new Float:Y2 = Y + (random(3) - random(3));
Pickup[randid] = CreatePickup(model, 4, X2, Y2, Z);
SetTimerEx("DestruirPickupCaido", 25 * 1000, false, "d", randid);
}
}
}