Object not being placed on my position x,y,z
#1

For some reason, when I use the command, it's not placing the object at all. It's returning the message "You have planted a marijuana bush etc.." but that's all. It's not creating the object I want it to create.

pawn Code:
new string[128], Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x,y,z);
            CreateObject(playerid, 823, x, y, z+2, 0, 0, 0);
            format(string, sizeof(string), "%s kneels down and plants some weed seeds.", GetICName(playerid));
            SendNearByMessage(playerid, ACTION_COLOR, string, 6);
            SendClientMessage(playerid, GREEN, "You have planted a marijuana bush, please come back later to harvest it!");
            SendClientMessage(playerid, GREEN, "Be careful other players do not take your weed, so keep a close eye on it!");
            PlayerStat[playerid][HasWeedSeeds] -= 1;
Any help would be appreciated, thank you
Reply


Messages In This Thread
Object not being placed on my position x,y,z - by Josh_Main - 06.10.2014, 07:30
Re: Object not being placed on my position x,y,z - by Sawalha - 06.10.2014, 08:00
Re: Object not being placed on my position x,y,z - by Josh_Main - 06.10.2014, 08:10
Re: Object not being placed on my position x,y,z - by Matess - 06.10.2014, 08:21

Forum Jump:


Users browsing this thread: 1 Guest(s)