18.08.2012, 07:46
If You Can Fix it I will gonna Rep you
The errors
pawn Код:
dcmd_vcall(playerid, params[])
{
#pragma unused params
new Slot;
if(sscanf(params,"d",Slot)) return SendClientMessage(playerid, Red, "[ERROR]Usage: /vcall [Slot]");
if(Slot == 1)
{
if(Car1(playerid) == 0) return SendClientMessage(playerid, Red, "You didn't have a car in slot 1"); //LINE 7925
SetTimerEx("Timer1",5000,false,"i",playerid);
SetVehicleToRespawn(Car1(playerid));
SendClientMessage(playerid, Green, "You has call you vehicle. Please wait 5 second");
}
else if(Slot == 2)
{
if(Car2(playerid) == 0) return SendClientMessage(playerid, Red, "You didn't have a car in slot 2");
SetTimerEx("Timer1",5000,false,"i",playerid);
SetVehicleToRespawn(Car2(playerid));
SendClientMessage(playerid, Green, "You has call you vehicle. Please wait 5 second");
}
else if(Slot == 3)
{
if(Car3(playerid) == 0) return SendClientMessage(playerid, Red, "You didn't have a car in slot 3");
SetTimerEx("Timer1",5000,false,"i",playerid);
SetVehicleToRespawn(Car3(playerid)); //I added this line.
SendClientMessage(playerid, Green, "You has call you vehicle. Please wait 5 second");
}
return 1;
}
The errors
pawn Код:
C:\Users\carlo\Desktop\New folder\pawno\include\fixes.inc(2482) : warning 217: loose indentation
C:\Users\carlo\Desktop\New folder\gamemodes\SATDM_v11.pwn(2495) : warning 217: loose indentation
C:\Users\carlo\Desktop\New folder\gamemodes\SATDM_v11.pwn(7925) : error 012: invalid function call, not a valid address
C:\Users\carlo\Desktop\New folder\gamemodes\SATDM_v11.pwn(7925) : warning 215: expression has no effect
C:\Users\carlo\Desktop\New folder\gamemodes\SATDM_v11.pwn(7925) : error 001: expected token: ";", but found ")"
C:\Users\carlo\Desktop\New folder\gamemodes\SATDM_v11.pwn(7925) : error 029: invalid expression, assumed zero
C:\Users\carlo\Desktop\New folder\gamemodes\SATDM_v11.pwn(7925) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.