[Pedido] /v (veнculo)
#8

Quote:
Originally Posted by Stewie`
Посмотреть сообщение
pawn Код:
CMD:veh(playerid, params[])
{
    new vid = strval(params);
    if(400 <= params < 600)
    {
        return SendClientMessage(playerid, -1, "/veh [id]");
    }
    new Float:vectorX, Float:vectorY, Float:vectorZ,
        Float:posX, Float:posY, Float:posZ,
    ;
    GetPlayerPos(playerid, posX, posY, posZ);
    GetPlayerCameraFrontVector(playerid, vectorX, vectorY, vectorZ);

    CreateVehicle(vid, posX + (vectorX * 3.0), posY + (vectorY * 3.0), posZ + (vectorZ * 3.0), 0.0, 0.0, 0.0, 1, 1, 1 << 31);
    return 1;
}
Entгo, o cmd tб apresentando 4 warnings e 1 erro
pawn Код:
C:\Users\Windows7\Desktop\SAMP\gamemodes\PO2.pwn(253) : error 033: array must be indexed (variable "params")
C:\Users\Windows7\Desktop\SAMP\gamemodes\PO2.pwn(263) : warning 213: tag mismatch
C:\Users\Windows7\Desktop\SAMP\gamemodes\PO2.pwn(263) : warning 213: tag mismatch
C:\Users\Windows7\Desktop\SAMP\gamemodes\PO2.pwn(263) : warning 202: number of arguments does not match definition
C:\Users\Windows7\Desktop\SAMP\gamemodes\PO2.pwn(263) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Nas linhas:
pawn Код:
linha 253: if(400 <= params < 600)
linha 263: CreateVehicle(vid, posX + (vectorX * 3.0), posY + (vectorY * 3.0), posZ + (vectorZ * 3.0), 0.0, 0.0, 0.0, 1, 1, 1 << 31);
Reply


Messages In This Thread
[Pedido] /v (veнculo) - by F_Cinco - 09.04.2012, 14:00
Re: [Pedido] /v (veнculo) - by steeldark - 09.04.2012, 14:09
Re: [Pedido] /v (veнculo) - by F_Cinco - 09.04.2012, 14:16
Re: [Pedido] /v (veнculo) - by steeldark - 09.04.2012, 14:18
Re: [Pedido] /v (veнculo) - by steki. - 09.04.2012, 14:24
Re: [Pedido] /v (veнculo) - by F_Cinco - 09.04.2012, 14:26
Re: [Pedido] /v (veнculo) - by steeldark - 09.04.2012, 14:32
Re: [Pedido] /v (veнculo) - by F_Cinco - 09.04.2012, 14:36
Re: [Pedido] /v (veнculo) - by F_Cinco - 09.04.2012, 14:39
Re: [Pedido] /v (veнculo) - by steeldark - 09.04.2012, 14:47

Forum Jump:


Users browsing this thread: 1 Guest(s)