Vehicle Script Help
#3

Got 4 errors
Код:
Microsoft Windows [Versгo 6.1.7601]
Copyright © 2009 Microsoft Corporation. Todos os direitos reservados.

C:\Users\Tigas001>C:\Users\Tigas001\Desktop\samp03e_svr_R2_win32\pawno\pawncc.ex
e C:\Users\Tigas001\Desktop\samp03e_svr_R2_win32\pawno\vsc.pwn
Pawn compiler 3.2.3664                  Copyright © 1997-2006, ITB CompuPhase

C:\Users\Tigas001\Desktop\samp03e_svr_R2_win32\pawno\include\sscanf2.inc(218) :
warning 218: old style prototypes used with optional semicolumns
C:\Users\Tigas001\Desktop\samp03e_svr_R2_win32\pawno\include\sscanf2.inc(278) :
warning 218: old style prototypes used with optional semicolumns
C:\Users\Tigas001\Desktop\samp03e_svr_R2_win32\pawno\vsc.pwn(7) : error 017: und
efined symbol "pInfo"
C:\Users\Tigas001\Desktop\samp03e_svr_R2_win32\pawno\vsc.pwn(7) : warning 215: e
xpression has no effect
C:\Users\Tigas001\Desktop\samp03e_svr_R2_win32\pawno\vsc.pwn(7) : error 001: exp
ected token: ";", but found "]"
C:\Users\Tigas001\Desktop\samp03e_svr_R2_win32\pawno\vsc.pwn(7) : error 029: inv
alid expression, assumed zero
C:\Users\Tigas001\Desktop\samp03e_svr_R2_win32\pawno\vsc.pwn(7) : fatal error 10
7: too many error messages on one line

Compilation aborted.
4 Errors.

C:\Users\Tigas001>
The code I'm using is

Код:
#include <a_samp>
#include <ZCMD>
#include <sscanf2>

CMD:acar(playerid,params[])
{
    if(pInfo[playerid][pAdmin] >=3)
    {
        new vehicleID,color1,color2;
        if(sscanf(params,"ddd",vehicleID,color1,color2)) return SendClientMessage(playerid,COLOR_GREY,"Usage: /acar [Vehicle ID] [Color 1] [Color 2]");
        {
            new Float:X,Float:Y,Float:Z;
            GetPlayerPos(playerid,X,Y,Z);
            CreateVehicle(vehicleID,X,Y,Z,90,color1,color2,0);
        }
    }
    else
    {
        SendClientMessage(playerid,COLOR_GREY,"You are not authorized to use this command.");
    }
    return 1;
}
Reply


Messages In This Thread
Vehicle Script Help - by Tigas001 - 02.09.2012, 02:01
Re: Vehicle Script Help - by Shockey HD - 02.09.2012, 06:44
Re: Vehicle Script Help - by Tigas001 - 02.09.2012, 10:46
Re: Vehicle Script Help - by Shockey HD - 02.09.2012, 17:38

Forum Jump:


Users browsing this thread: 2 Guest(s)