20.06.2011, 23:28
I added the other 3 arguements I was missing and same result, For the removeplayerattachedobject I did that to make sure they had no other object on them, then for the TrafficCone[playerid] it is so I can delete the object that is created after the player tried to return the cone:
Like I said for some odd reason the there is no object and nothing appears but the action text appears .
pawn Код:
ItemHolding[playerid] = 0;
DestroyObject(TrafficCone[playerid]);
RemovePlayerAttachedObject(playerid, 5);
GetPlayerName(playerid, sendername, sizeof(sendername));
Fmsg("%s opens the back of the truck and puts a traffic cone inside", sendername);
SLM(playerid, string, 15, COLOR_PURPLE, COLOR_PURPLE);