Creating Player Death Pickups - Help pl0x
#1

hey guys,

im trying to make it so that when a player dies there weapons are placed as pickups on the ground.


my basic thing atm is this:

new weaponid2;
weaponid2 = GetPlayerWeapon(playerid);
if(weaponid2 == 35)
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreatePickup(359, 4, %f, %f, %f, x, y, z);
}

(under OnPlayerDeath)

it gives me four errors:

C:\Program Files\GAMES\GTA San Andreas\gamemodes\ANTICHEAT.pwn(86) : error 029: invalid expression, assumed zero
C:\Program Files\GAMES\GTA San Andreas\gamemodes\ANTICHEAT.pwn(86) : error 017: undefined symbol "f"
C:\Program Files\GAMES\GTA San Andreas\gamemodes\ANTICHEAT.pwn(86) : error 017: undefined symbol "f"
C:\Program Files\GAMES\GTA San Andreas\gamemodes\ANTICHEAT.pwn(86) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


i would like to know how to fix these errors; and/or make it so that i dont need to do five-hundred of these little things under on player death, rather a system that is much more efficient.


thanks in advance for any help
Reply
#2

Код:
CreatePickup(359, 4, x, y, z);
Reply
#3

cheers, ill see if it works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)