29.07.2014, 07:32
I tried it already but i got to many errors and i couldn't fix it, so maybe someone with better skills can help me
EDIT: I now have one error in my unrentcar code can someone try to see whats wrong?
unrentcar Command
EDIT: I now have one error in my unrentcar code can someone try to see whats wrong?
Код:
C:\Users\Andy\Desktop\SAMP\RP\gamemodes\Roleplay.pwn(4493) : warning 217: loose indentation C:\Users\Andy\Desktop\SAMP\RP\gamemodes\Roleplay.pwn(4502) : warning 217: loose indentation C:\Users\Andy\Desktop\SAMP\RP\gamemodes\Roleplay.pwn(4506) : error 010: invalid function or declaration
pawn Код:
CMD:unrentcar(playerid, params[])
{
new string[124];
new vehicleid = GetPlayerVehicleID(playerid);
for(new i=0; i<5; i++)
{
if(GetPlayerState(playerid) == 2 && IsPlayerInVehicle(playerid, rentCAR[i]))
{
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
{
if(engine != 0)
{
SetVehicleParamsEx(vehicleid, 0, 0, alarm, doors, bonnet, boot, 0);
format(string, sizeof(string), "* %s turns the engine off.", GetName(playerid));
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
rentingVehicle[playerid] = false;
TogglePlayerControllable(playerid,1);
}
}
return 1;
}