fixveh command
#1

Hello, I am trying to do a vehicle fix admin command filterscript, but I am getting errors, here it's the script

Код:
#include <a_samp>


#define fixvehall
#define IsPlayerLoggedIn
#define playerid
#define PlayerInfo
#define playerid
#define COLOR_GREY


public OnFilterScriptInit()
{

CMD:fixvehall(playerid, params[])
{
    if(!IsPlayerLoggedIn(playerid))) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
	if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
	if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on Admin Duty.");
    for(new i = 0; i < MAX_VEHICLES; i++)
    if(sscanf(params,"s[32]", params))
    {
    
       //SetVehicleHealth(i, 1000.0);
	   RepairVehicle(i);
	
	{
	
       SendClientMessage(playerid, COLOR_GREY, "All vehicles fixed.");
       return 1;
       
	}
	
CMD:fixveh (playerid, params[])
{
    if(!IsPlayerLoggedIn(playerid))) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
	if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
	if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on Admin Duty.");
	if(IsPlayerInAnyVehicle(playerid))
    {
    
        RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, COLOR_GREY, "   You have fixed your vehicle !");
	{
	
		}
		return 1;

And these are the errors

Код:
C:\Documents and Settings\Administrator\Desktop\test.pwn(15) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\test.pwn(15) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\test.pwn(17) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\test.pwn(17) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\test.pwn(18) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\test.pwn(18) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\test.pwn(18) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\test.pwn(18) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
Please, tell me what I am doing wrong, thanks !
Reply


Messages In This Thread
fixveh command - by Jhony_Blaze - 30.07.2013, 11:04
Re: fixveh command - by JimmyCh - 30.07.2013, 11:13
Re: fixveh command - by Jimmy0wns - 30.07.2013, 11:14
Re: fixveh command - by morocco - 30.07.2013, 11:15
Re: fixveh command - by Jhony_Blaze - 30.07.2013, 11:15
Re: fixveh command - by JimmyCh - 30.07.2013, 11:17
Re: fixveh command - by Jhony_Blaze - 30.07.2013, 11:19
Re: fixveh command - by Konstantinos - 30.07.2013, 11:21
Re: fixveh command - by JimmyCh - 30.07.2013, 11:24
Re: fixveh command - by Jhony_Blaze - 30.07.2013, 11:48

Forum Jump:


Users browsing this thread: 1 Guest(s)