15.01.2013, 20:36
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.
I know it's a simple mistake but I can't figure out what I did wrong.
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;
}

