Creating Player Death Pickups - Help pl0x - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Creating Player Death Pickups - Help pl0x (
/showthread.php?tid=67884)
Creating Player Death Pickups - Help pl0x -
hazdog - 05.03.2009
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
Re: Creating Player Death Pickups - Help pl0x -
[RP]Rav - 05.03.2009
Код:
CreatePickup(359, 4, x, y, z);
Re: Creating Player Death Pickups - Help pl0x -
hazdog - 06.03.2009
cheers, ill see if it works.