SA-MP Forums Archive
Esto por que pasa - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Esto por que pasa (/showthread.php?tid=609244)



Esto por que pasa - Yultranions - 10.06.2016

Estaba haciendo un mapa en el editor ese SA:MP Construction, y le di guardar en un .pwn y ahora que lo abro solo sale los remove pero los no cargan son los createobject por que sera?


Respuesta: Esto por que pasa - OTACON - 10.06.2016

https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer
https://sampwiki.blast.hk/wiki/CreateObject

el editor guarda el codigo en un archivo pwn pero sin callbacks.
colocalo en sus callbacks correspondientes.

saludos.



Re: Esto por que pasa - Yultranions - 11.06.2016

La puse asн
PHP код:
public OnGameModeInit()
{
CreateObject(17523, 19.94263, 31.35925, -0.93386,   0.00000, 0.00000, 0.51010);
CreateObject(16146, 8.90894, -35.06702, -0.01583,   0.00000, 0.00000, 0.00000);
CreateObject(16360, 6.07471, -53.15845, -2.54421,   0.00000, 0.00000, 270.07022);
CreateObject(2043, 26.75391, 9.54211, -2.72818,   0.00000, 0.00000, 0.00000);
CreateObject(2068, 21.83130, 17.84241, 2.76446,   0.00000, 0.00000, 0.00000);
    return 
1;
}
}
public 
OnPlayerConnect(playerid)
{
    
// When the player connects, objects with model 615 will be removed within a
    // range of 200.0 from the point 0.0, 0.0, 0.0, which is the center of San Andreas.
RemoveBuildingForPlayer(playerid, 3645, 2069.6172, -1556.7031, 15.0625, 0.25);
RemoveBuildingForPlayer(playerid, 3645, 2070.7578, -1586.0156, 15.0625, 0.25);
RemoveBuildingForPlayer(playerid, 5633, 2089.3594, -1643.9297, 18.2188, 0.25);
RemoveBuildingForPlayer(playerid, 1524, 2074.1797, -1579.1484, 14.0313, 0.25);
RemoveBuildingForPlayer(playerid, 3644, 2070.7578, -1586.0156, 15.0625, 0.25);
RemoveBuildingForPlayer(playerid, 3644, 2069.6172, -1556.7031, 15.0625, 0.25);
    return 
1;
} 
es un ejemplo


Respuesta: Esto por que pasa - wharlos - 11.06.2016

Yo no los pongo en callback ni nada solo pongo los cуdigos normal y ya me agarra bien