Por que no crea el auto? - 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: Por que no crea el auto? (
/showthread.php?tid=433214)
Por que no crea el auto? -
Daniel_Ruiz - 26.04.2013
Bueno amigos hace mucho que no publicaba pero bueno necesito ayuda
pawn Код:
CMD:participar(playerid, params[])
{
new Float:x , Float:y , Float:z;
if(evento == 1)
{
if(eRace == 1)
{
SetPlayerPos(playerid, 544.7097,-1281.5441,17.2482);
GetPlayerPos(playerid, x,y,z);
CreateVehicle(200,x,y,z,0,1,1,1);
}
}else SendClientMessage(playerid, -1, "Ningun evento Ha sido Activado");
return 1;
}
Me teleporta pero no crea el auto saben por que?
Re: Por que no crea el auto? -
admantis - 26.04.2013
Porque el primer parametro para CreateVehicle debe ser el modelo del auto, y 200 no es uno vбlido. Para ver la lista:
https://sampwiki.blast.hk/wiki/Vehicle_Model_ID_List
Respuesta: Por que no crea el auto? -
Daniel_Ruiz - 26.04.2013
Eso Pues en parte si era pero aun no lo crea :/
Respuesta: Por que no crea el auto? -
xSDx - 26.04.2013
Tal vez superaste el limite de vehiculos
Respuesta: Por que no crea el auto? -
Daniel_Ruiz - 26.04.2013
No tengo un maximo de 200 y ese seria el 187
Respuesta: Por que no crea el auto? -
benjas09 - 27.04.2013
PHP код:
CMD:participar(playerid, params[])
{
new Float:x , Float:y , Float:z;
if(evento == 1)
{
if(eRace == 1)
{
SetPlayerPos(playerid, 544.7097,-1281.5441,17.2482);
CreateVehicle(525, 544.7097, -1281.5441, 17.2482,0,1,0,-1);
SendClientMessage(playerid, -1, "probando");
}
}else SendClientMessage(playerid, -1, "Ningun evento Ha sido Activado");
return 1;
}
fijate si asi funciona :c