23.08.2011, 01:20
pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
new cash;
cash = CreatePickup(1212,4,x,y,z,-1);
return 1;
}
pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash)
{
GivePlayerMoney(playerid,100);
}
return 1;
}
cod5.pwn(169) : error 017: undefined symbol "cash"[/PAWN]
I can't see anything wrong with the script, though :/