• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] [SOLVED] Cant spawn object from right AddSimpleModel just symbol "?" spawned
#1
PROBLEM :

Code:
AddSimpleModel(0, 5409, 20002, "mosque.dff", "mosque.txd");



SOLUTION :

Code:
// adding minus symbol (-) to index model has modded.

AddSimpleModel( -1, 5409,? -20002, "mosque.dff", "mosque.txd");







source?https://dev.prineside.com/en/gtasa_samp_model_id/model/5409-laepetrol1a/



Code:
CMD:addmosque(playerid, params[])

{

? new Float:pos[6];

? GetPlayerPos(playerid, pos[0], pos[1], pos[2]);



? new Float: angle;

? GetPlayerFacingAngle(playerid, angle);





?



? new object;// = CreateObject(model, pos[0]  (20.0 * floatsin(-angle, degrees)), pos[1]  (20.0 * floatcos(-angle, degrees)), pos[2]  5, 0, 0, angle);

? object = CreateObject(20002,pos[0], pos[1], pos[2], 0, 0, angle);

? //object = CreateDynamicObject(20002,pos[0], pos[1], pos[2], Float:0, Float:0, Float:0, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid) );

? PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);



? new string[144];

? format(string, sizeof(string), "You have created a new object original : 5409, idobject in server : %i, position: %f, %f, %f, 0.0, 0.0, %f].", object, pos[0], pos[1], pos[2], angle);

? SendClientMessage(playerid, COLOR_RED, string);

? EditObject(playerid, object);

? //Streamer_Update(playerid, -1);

? //EditDynamicObject(playerid, labelajah[playerid]);

? SendClientMessage(playerid, 0xFFFFFFFF, "MOVE OBJECT: Hold the button of {FFFF00}~k~~PED_SPRINT~{FFFFFF} for free looking at.");



? return 1;

}
  Reply


Messages In This Thread
[SOLVED] Cant spawn object from right AddSimpleModel just symbol "?" spawned - by PutuSuhartawan - 2021-04-15, 10:39 PM

Forum Jump: