25.08.2012, 11:12
God damnit. Disregard my comment about the null character, I messed up when I was reading your code.
I'm not entirely sure on your code, I'll see if I can find out, otherwise wait for someone else.
EDIT: I guess you will have to do something like this, unless someone else can help you out.
I'm not entirely sure on your code, I'll see if I can find out, otherwise wait for someone else.
EDIT: I guess you will have to do something like this, unless someone else can help you out.
pawn Код:
#include <a_samp>
// new pickup[] = {0, 1, 2, 3};
// new pickup[4];
public OnGameModeInit()
{
pickup[0] = CreatePickup(params);
pickup[1] = CreatePickup(params);
pickup[2] = CreatePickup(params);
pickup[3] = CreatePickup(params);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
for(new i = 0; i<sizeof(pickup); i++)
if(pickupid == pickup[i]) GivePlayerMoney(playerid,10000);
return 1;
}