[POMOĆ] GiveWeapon

Započeo TiXoR_
14. Maj 2011.
800
pregleda
4
postova
aleluja
5
Godfather
14. Maj 2011.
Skripta koju koristim: Mod 0
Detaljan opis problema: radio sam komandu /giveweapon i dobia san error oko kojeg se mučim.. -.-
L:\Users\Dino\Documents\Dino\SAMP\samp03csvr_R2-2_win32\gamemodes\sxrp.pwn(497) : error 010: invalid function or declaration
Dio skripte:
CMD:giveweapon(playerid, params[]) {
new
id,
weapon;
if(sscanf(params, "u", id)) {

SendClientMessage(playerid, COLOR_ORANGE, "/giveweapon ");
}
weapon = GetPlayerWeapon(playerid);

switch(weapon) {
case 16, 18, 35, 36, 37, 38, 39, 40, 44, 45, 46, 0: SendClientMessage(playerid, SPLAVA, "Invalid weapon.");
default: {
SetPVarInt(id,"gunID",playerid);
SetPVarInt(playerid,"gun",weapon);
SetPVarInt(playerid,"slot",GetWeaponSlot(weapon));
}
}
    }
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): ///
pavle.bakun
5
Crime Lord
14. Maj 2011.
CMD:giveweapon(playerid, params[])

    new 
    id, 
    weapon;
    weapon = GetPlayerWeapon(playerid); 
    if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_ORANGE, "/giveweapon "); 
        if(weapon == 16 || weapon == 18 || weapon == 35 || weapon == 36 || weapon == 37 || weapon == 38 || weapon == 39 || weapon == 40 || weapon == 44 || weapon == 45 || weapon == 46 || weapon == 0) return SendClientMessage(playerid, SPLAVA, "Invalid weapon.");
        SetPVarInt(id,"gunID",playerid); 
        SetPVarInt(playerid,"gun",weapon); 
        SetPVarInt(playerid,"slot",GetWeaponSlot(weapon)); 
        return true; 
}

ps. jer imas u modu getweaponslot😕
aleluja
5
Godfather
14. Maj 2011.
Komanda ne radi...
Iman getweaponslot
Lane_Hudson
4
Enforcer
15. Maj 2011.
Jel zelis da igrac da nekom drugom igracu ili da kao admin spawnas?

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha