Help: Pickup Weapon
#1

hello friends, i need defined "GiveDodWeapon", I have copied this code and dont know the way fix it.

PHP код:
CMD:pickupweapon(playeridparams[])
{
    if(
GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return 1;
    new 
slot = -1;
    new 
Float:xFloat:yFloat:z;
    for(new 
0MAX_OBJi++)
        if(
dGunData[i][ObjData][0] > && IsValidObject(dGunData[i][ObjData][0]))
        {
            
GetObjectPos(dGunData[i][ObjData][0], xyz);
            if(
IsPlayerInRangeOfPoint(playerid5.0xyz))
            {
                
slot i;
                break;
            }
        }
    if(
slot 0) return SendClientMessage(playerid0x33AA3300"You are not near the weapon which you can pick up!");
    
DestroyObject(dGunData[slot][ObjData][0]);
    
GiveDodWeapon (playeriddGunData[slot][ObjData][1], dGunData[slot][ObjData][2]); // <---- error line
    
dGunData[slot][ObjData][0] = 0;
    new 
buffer[50];
    
format(buffersizeof(buffer), "You picked up %s"GunNames[dGunData[slot][ObjData][1]]);
    
SendClientMessage(playerid0x33AA3300buffer);
    return 
1;

PHP код:
C:\Users\1320703\Desktop\GTA3\server2\gamemodes\Kon4.pwn(21523) : error 017undefined symbol "GiveDodWeapon"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Reply


Messages In This Thread
Help: Pickup Weapon - by bookknp - 21.05.2018, 23:58
Re: Help: Pickup Weapon - by bookknp - 22.05.2018, 02:07
Re: Help: Pickup Weapon - by bookknp - 22.05.2018, 02:11

Forum Jump:


Users browsing this thread: 1 Guest(s)