EditDynamicObject and EditObject
#4

Try declaring the variable forsaleznak as a player variable
pawn Код:
new forsaleznak[MAX_PLAYERS];
//then in the command
if(strcmp(cmd, "/srediznakce", true) == 0)
    {
        if(xkukja2[playerid] != 0)
        {
            new Float:x,Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            forsaleznak[playerid] = CreateObject(19471, x, y, z+2, 0.0, 0.0, 0.0);
            EditObject(playerid, forsaleznak);
        }
        else
        {
            SendClientMessage(playerid, WHITE, "{F20000}GRESKA: {FFFFFF}Koristete prvo /kreirajkukja !");
        }
    }
//do the same with onplayereditobject
Reply


Messages In This Thread
EditDynamicObject and EditObject - by NeroX98 - 11.07.2013, 23:49
Respuesta: EditDynamicObject and EditObject - by JustBored - 12.07.2013, 00:46
Re: EditDynamicObject and EditObject - by NeroX98 - 12.07.2013, 00:50
Respuesta: EditDynamicObject and EditObject - by JustBored - 12.07.2013, 01:50
Re: EditDynamicObject and EditObject - by NeroX98 - 12.07.2013, 01:54

Forum Jump:


Users browsing this thread: 1 Guest(s)