SA-MP Forums Archive
26 Errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 26 Errors (/showthread.php?tid=662516)



26 Errors - BOyka1 - 03.01.2019

PHP код:
public OnPlayerEnterCheckpoint(playerid)
{  
     if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 609)
     {
     if(
IsPlayerInRangeOfPoint(playerid7.0ClothesPoint1))
     {
        
TogglePlayerControllable(playerid0);
        
SetTimerEx("Loading"50000"i"playerid);
          
GameTextForPlayer(playerid"~g~Loading the goods please wait"30005);
        
SetPlayerCheckpoint(playeridClothesPoint27.0);
     }
     if(
IsPlayerInRangeOfPoint(playerid7.0ClothesPoint2))
     {
        
TogglePlayerControllable(playerid0);
        
SetTimerEx("Trader"50000"i"playerid);
        
GameTextForPlayer(playerid"~g~Clearing the goods please wait"30005);
        
DisablePlayerCheckpoint(playerid);
        
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
     }
     if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 400)
     {
     if(
IsPlayerInRangeOfPoint(playerid7.0GunsPoint1))
     {
        
TogglePlayerControllable(playerid0);
        
SetTimerEx("LoadingGuns"50000"i"playerid);
          
GameTextForPlayer(playerid"~g~Loading the goods please wait"30005);
        
SetPlayerCheckpoint(playeridGunsPoint27.0);
     }
     if(
IsPlayerInRangeOfPoint(playerid7.0GunsPoint2))
     {
        
TogglePlayerControllable(playerid0);
        
SetTimerEx("Guns"50000"i"playerid);
        
GameTextForPlayer(playerid"~g~Clearing the goods please wait"30005);
        
DisablePlayerCheckpoint(playerid);
        
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
      }
  }
}
it gives 26 errors i reallycant see any missing brackets help please 



Re: 26 Errors - BOyka1 - 03.01.2019

Special thanks to Void,Doggo they helped me