Weird... PickUp Problem
#1

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;
}
[CODE]cod5.pwn(83) : warning 204: symbol is assigned a value that is never used: "cash"
cod5.pwn(169) : error 017: undefined symbol "cash"[/PAWN]

I can't see anything wrong with the script, though :/
Reply


Messages In This Thread
Weird... PickUp Problem - by Tigerbeast11 - 23.08.2011, 01:20
Re: Weird... PickUp Problem - by =WoR=G4M3Ov3r - 23.08.2011, 01:26
Re: Weird... PickUp Problem - by CyNiC - 23.08.2011, 01:26
Re: Weird... PickUp Problem - by Tigerbeast11 - 23.08.2011, 01:43
Re: Weird... PickUp Problem - by =WoR=G4M3Ov3r - 23.08.2011, 01:45

Forum Jump:


Users browsing this thread: 1 Guest(s)