Repair pickup problem
#3

Hello.
Next time please place your code into [.pawn][./pawn] tags (without dots '.').

First at all, you must declare 'Pickup' array size. For your code, you should paste this:
pawn Код:
new Pickup[1];
instead of
pawn Код:
new Pickup[];
2nd thing.
pawn Код:
forward Pickupop;
instead of
pawn Код:
forward Pickup;
Why you're forwarding something for variable, not for public, eh?
You've done this script very chaotically.

Next thing:
pawn Код:
public Dialog_BuyRepaired(playerid, response, listitem);
{
    if(pickupid == pickups[0][mrepair])
    {
   
    if(GetPlayerMoneyA(playerid) < 500)
    {
    SendClientMessage(playerid,0xD9E916FF,"* Jбrműved megjavнtva (500$)) !");
    return 1;
    }

    new vehicleid = GetPlayerVehicleID(playerid);
    SetVehicleHealth(vehicleid,1000.0);
    return 1;
}
}
Forget closing } at the very end??

That should be all.

Greetz,
LetsOWN
Reply


Messages In This Thread
Repair pickup problem - by joska - 01.01.2013, 11:17
Re: Repair pickup problem - by davve95 - 01.01.2013, 11:44
Re: Repair pickup problem - by LetsOWN[PL] - 01.01.2013, 11:45
Re: Repair pickup problem - by joska - 01.01.2013, 11:58
Re: Repair pickup problem - by joska - 01.01.2013, 12:00
Re: Repair pickup problem - by LetsOWN[PL] - 01.01.2013, 12:01
Re: Repair pickup problem - by joska - 01.01.2013, 12:04
Re: Repair pickup problem - by joska - 01.01.2013, 12:23

Forum Jump:


Users browsing this thread: 3 Guest(s)