[Ajuda] Comando de Carro
#4

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;
}
Nгo testei '-

Quote:
Originally Posted by seykan
Посмотреть сообщение
tentei fazer pelo Wiki do SAMP (https://sampwiki.blast.hk/wiki/CreateVehicle)

ficou assim:

Код:
CreateVehicle(idcarro, x, y, z);
assim mesmo?, eu fiquei meio confuso com o wiki...

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.
Falta a rotacгo, Cor1, cor2 e o tempo de respawn
Reply


Messages In This Thread
Comando de Carro - by seykan - 18.06.2014, 21:47
Re: Comando de Carro - by Schocc - 18.06.2014, 21:49
Re: Comando de Carro - by seykan - 18.06.2014, 21:55
Re: Comando de Carro - by Fenix4000 - 18.06.2014, 22:08
Re: Comando de Carro - by seykan - 18.06.2014, 22:29
Re: Comando de Carro - by MultiKill - 18.06.2014, 23:03

Forum Jump:


Users browsing this thread: 4 Guest(s)