13.12.2010, 07:08
When a player completes the mission in there private vehicle i want it so they get a 2k bouns. Couldn't really figure out how to fix the error.
pawn Код:
public OnPlayerFinishMission(playerid)
{
//some other stuff here
}
if(!strmatch(VehicleInfo[vehicleid][Owner],GetName(playerid)) && VehicleInfo[vehicleid][Ownable] == 1) (error line)
{
SendClientMessage(playerid, COLOR_GREEN,"Bouns for using private vehicle: $2000");
GivePlayerMoney(playerid, 2000);
}
}
pawn Код:
error.
C:\Documents and Settings\Hayden Bruin\Desktop\Pilot Heaven\gamemodes\pilot.pwn(620) : error 010: invalid function or declaration