18.06.2014, 22:08
pawn Код:
CMD:carro(playerid, params[])
{
new idcarro;
new Float: x, Float: y, Float: z,Float:rot;
GetPlayerPos(playerid, x , y, z);
if(sscanf(params,"i", idcarro)) return SendClientMessage(playerid, 0xFF0000FF, "Use: /carro [id]");
else
{
idcarro = Vehicle_Create(idcarro, x+5, y, z, rot, random(126), random(126), 600);
}
return 1;
}
Quote:
tentei fazer pelo Wiki do SAMP (https://sampwiki.blast.hk/wiki/CreateVehicle)
ficou assim: Код:
CreateVehicle(idcarro, x, y, z); eu fiz e deu alguns warning: Код:
C:\Users\Vitor\Desktop\Servidor\filterscripts\comandos.pwn(164) : warning 202: number of arguments does not match definition C:\Users\Vitor\Desktop\Servidor\filterscripts\comandos.pwn(164) : warning 202: number of arguments does not match definition C:\Users\Vitor\Desktop\Servidor\filterscripts\comandos.pwn(164) : warning 202: number of arguments does not match definition C:\Users\Vitor\Desktop\Servidor\filterscripts\comandos.pwn(164) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Warnings. |