Invalid Function or declaration
#1

hello, im scripting a random script (learning scripting exactly)
but i got this error when trying to make a script that give someone money
Код:
D:\Bart\Samp Server\filterscripts\BRMember.pwn(126) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
This is the commands line where the error appear
also, idk why, but the car fix isn't working even u are in car (i want it to not work when u are not in a car and work if u are in car)
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/brfix", cmdtext, true, 10) == 0)
    {
        if (IsPlayerInAnyVehicle(GetPlayerVehicleID(playerid)))
        {
        	RepairVehicle(GetPlayerVehicleID(playerid));
        	return SendClientMessage(playerid, COLOR_YELLOW, "LS-SW AAD: Your Vehicle is now fixed");
		}
       	else return SendClientMessage(playerid, COLOR_YELLOW,"Please get in a car");
	}
	else return SendClientMessage(playerid, COLOR_YELLOW,"Please get in a car");
}

    if (strcmp("/brrob", cmdtext, true, 10) == 1) //error appear in this line
    {
		GivePlayerMoney(playerid,10000);
		SendClientMessage(playerid, COLOR_GREEN,"Robbery Successful! $10000");
	}
}
Thank you
Reply


Messages In This Thread
Invalid Function or declaration - by YahyaBR - 03.03.2013, 01:25
Re: Invalid Function or declaration - by Godzilla8957 - 03.03.2013, 01:29
Re: Invalid Function or declaration - by YahyaBR - 03.03.2013, 01:39
Re: Invalid Function or declaration - by Godzilla8957 - 03.03.2013, 01:40
Re: Invalid Function or declaration - by YahyaBR - 03.03.2013, 01:57
Re: Invalid Function or declaration - by Godzilla8957 - 03.03.2013, 02:07
Re: Invalid Function or declaration - by YahyaBR - 07.03.2013, 05:22

Forum Jump:


Users browsing this thread: 1 Guest(s)