[HELP] Compiling problem
#1

I've had a problem. When I compile my gamemode I recive this error:
Quote:

C:\Documents and Settings\Laur\Desktop\DM\gamemodes\deathmatch.pwn( 825) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Laur\Desktop\DM\gamemodes\deathmatch.pwn( 825) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Laur\Desktop\DM\gamemodes\deathmatch.pwn( 825) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Laur\Desktop\DM\gamemodes\deathmatch.pwn( 825) : fatal error 107: too many error messages on one line

The script is:
Quote:

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SUBMISSION)
{
if (IsPlayerInAnyVehicle(playerid))
{
new Float:health;
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleHealth(vehicleid, health);
if (health < 995)
{
RepairVehicle(GetPlayerVehicleID(playerid));
}
}
}
if(newkeys == KEY_JUMP)
{
if(Planted[playerid] == 1)
{
GivePlayerWeapon(playerid, 40, 1);
ClearAnimations(playerid);
ApplyAnimation(playerid,"PED","bomber",4.0,0,0,0,0 ,1000);
SetTimerEx("Explode", 1200, 0, "i", playerid);
return 1;
}
}
if(newkeys & KEY_FIRE && IsPlayerInAnyVehicle(playerid))
{
if(!IsNosVehicle(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid,0xFF0000AA , "You can not add nitro to the vehicle");
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
}
return 1;
}

and the line 825 is
Quote:

RepairVehicle(GetPlayerVehicleID(playerid));

Reply


Messages In This Thread
[HELP] Compiling problem - by djvolt - 17.04.2010, 16:37
Re: [HELP] Compiling problem - by FreddeN - 17.04.2010, 16:42
Re: [HELP] Compiling problem - by djvolt - 17.04.2010, 16:45
Re: [HELP] Compiling problem - by FUNExtreme - 17.04.2010, 17:04
Re: [HELP] Compiling problem - by aircombat - 17.04.2010, 17:12

Forum Jump:


Users browsing this thread: 1 Guest(s)