SA-MP Forums Archive
Please help me command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Please help me command (/showthread.php?tid=450285)



Please help me command - xganyx - 12.07.2013

pawn Код:
CMD:mycommandhere(playerid,params[])
{
    new Float:cz;
    new Float:cy;
    new Float:cx;
    new skin = GetPlayerSkin(playerid);
    GetPlayerPos(playerid,cx,cy,cz);
    object = CreateObject(skin, cx , cy , cz,   -12.30000, -87.30000, -1.56000);
    object1 = CreateObject(skin, cx , cy , cz,  -12.30000, -87.30000, -1.56000);
}
and when i going in game type /mycommandhere the server say : SERVER UNKNOW THAT COMMAND...
What problem ? i pawn compiler this


Re: Please help me command - JaKe Elite - 12.07.2013

return 1;

after object1 = ...


Re: Please help me command - DaRk_RaiN - 12.07.2013

pawn Код:
CMD:mycommandhere(playerid,params[])
{
    new Float:cz;
    new Float:cy;
    new Float:cx;
    new skin = GetPlayerSkin(playerid);
    GetPlayerPos(playerid,cx,cy,cz);
    object = CreateObject(skin, cx , cy , cz,   -12.30000, -87.30000, -1.56000);
    object1 = CreateObject(skin, cx , cy , cz,  -12.30000, -87.30000, -1.56000);
    return 1;//This
}
Also read this


Re: Please help me command - xganyx - 12.07.2013

oh shit i forgot that thanks jake and dark rain


Re: Please help me command - xganyx - 12.07.2013

hey but when i type the command i don't see the object. i want to put them next to me... the cx and cy should plus how much ?


Re: Please help me command - xganyx - 12.07.2013

help please i'm very need this


Re: Please help me command - arjanforgames - 12.07.2013

pawn Код:
CMD:mycommandhere(playerid,params[])
{
    new Float:cz;
    new Float:cy;
    new Float:cx;
    new skin = GetPlayerSkin(playerid);
    GetPlayerPos(playerid,cx,cy,cz);
    object = CreateObject(skin, cx , cy+1 , cz,   -12.30000, -87.30000, -1.56000);
    object1 = CreateObject(skin, cx , cy+1 , cz,  -12.30000, -87.30000, -1.56000);
    return 1;//This
}



Re: Please help me command - xganyx - 13.07.2013

Quote:
Originally Posted by arjanforgames
Посмотреть сообщение
pawn Код:
CMD:mycommandhere(playerid,params[])
{
    new Float:cz;
    new Float:cy;
    new Float:cx;
    new skin = GetPlayerSkin(playerid);
    GetPlayerPos(playerid,cx,cy,cz);
    object = CreateObject(skin, cx , cy+1 , cz,   -12.30000, -87.30000, -1.56000);
    object1 = CreateObject(skin, cx , cy+1 , cz,  -12.30000, -87.30000, -1.56000);
    return 1;//This
}
cy + 1 ? this still doesn't work i don't see the object.


Respuesta: Please help me command - PHudson - 13.07.2013

Skins are not considered valid model objects. You are trying to create an object with same model of playerid's skin.
If you want to show a ped use an NPC, otherwise use a valid model in the first parameter.


Re: Please help me command - Sandiel - 13.07.2013

https://sampwiki.blast.hk/wiki/AttachObjectToPlayer
Maybe that's what you're looking for? Having the wrong object ID might also result in a non-existant (or too small/big to be visible) object being created.