Problem with fixcar command
#1

So I'm trying to make a simple /fixcar command and it is giving me this:
C:\Documents and Settings\Charles\Desktop\SA-MP Scripts\blank samp\gamemodes\grandlarc.pwn(490) : error 029: invalid expression, assumed zero

Line 490 is the line that 'else' is on.

Код:
//-----------------fixcar------------------------------
if(strcmp("/fixcar", cmdtext, true, 7) == 0)
        {
        new vehicleid = GetPlayerVehicleID(playerid);
        if IsPlayerInAnyVehicle(playerid) *then
        SetVehicleHealth(vehicleid, 1000.0);
        SendClientMessage(playerid, 0xFFFFFF, "Your car has been repaired.");
        else
		SendClientMessage(playerid, 0xFFFFFF, "You must be in a car to use this command.");

		return 1;
        }
I know it's a simple mistake but I can't figure out what I did wrong.
Reply


Messages In This Thread
Problem with fixcar command - by TheCancler - 15.01.2013, 20:36
Re: Problem with fixcar command - by Patrick - 15.01.2013, 20:44
Re: Problem with fixcar command - by TheCancler - 15.01.2013, 20:54
Re: Problem with fixcar command - by Patrick - 15.01.2013, 20:55
Re: Problem with fixcar command - by Infinity90 - 15.01.2013, 20:57
Re: Problem with fixcar command - by TheCancler - 15.01.2013, 21:00

Forum Jump:


Users browsing this thread: 1 Guest(s)