24.01.2013, 20:21
Use CreatePickup, because it returns a ID
pawn Код:
CMD:pickup(playerid, params[])
{
new Float:Pos[3];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
CreatePickup(1582,1,Pos[0],Pos[1],Pos[2],0);
printf("CreatePickup(1582,1,%d,%d,%d,0);",Float:Pos[0],Float:Pos[1],Float:Pos[2]);
return 1;
}