SA-MP Forums Archive
Do you guys no what is the problem - 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: Do you guys no what is the problem (/showthread.php?tid=385874)



Do you guys no what is the problem - ejul - 18.10.2012

Код:
if(IsPlayerInRangeOfPoint(playerid, 20.0,1869.8599,-2493.2256,13.5547)
                    {
                    Island[Los_Santos][playerid] = SetPlayerFlightCheckpoint(playerid, 1869.8599,-2493.2256,13.5547, 10.0);
                    IslandName="Los Santos";
					}
                   else if(IsPlayerInRangeOfPoint(playerid, 20.0,-1437.0648,48.4609,14.1484)
				    {
                    Island[San_Fierro][playerid] = SetPlayerFlightCheckpoint(playerid, -1437.0648,48.4609,14.1484, 10.0);
                    IslandName="San Fierro";
				    }
                    else if(IsPlayerInRangeOfPoint(playerid, 20.0,1476.5433,1465.9758,10.8281)
				    {
                    Island[Las_Venturas][playerid]=SetPlayerFlightCheckpoint(playerid, 1476.5433,1465.9758,10.8281, 10.0);
                    IslandName="Las Venturas";
					}

                    


                FirstAPName[playerid] = IslandName;
                format(szString, 128, "Go to %s to pick up the passengers!", IslandName);

        WorkTimer[playerid] = SetTimerEx("WorkingMinutes", 60000, true, "i", playerid);
                SendClientMessage(playerid, COLOR_LIGHTGREEN, szString);
                return 1;
        }



Quote:

C:\GAME\PilotFlying(SAA)\gamemodes\Thelifeofpilots 2.pwn(140 : error 001: expected token: ")", but found "{"
C:\GAME\PilotFlying(SAA)\gamemodes\Thelifeofpilots 2.pwn(1413) : error 001: expected token: ")", but found "{"
C:\GAME\PilotFlying(SAA)\gamemodes\Thelifeofpilots 2.pwn(141 : error 001: expected token: ")", but found "{"




AW: Do you guys no what is the problem - BiosMarcel - 18.10.2012

PHP код:
                    if(IsPlayerInRangeOfPoint(playerid20.0,1869.8599,-2493.2256,13.5547)
                    {
                    
Island[Los_Santos][playerid] = SetPlayerFlightCheckpoint(playerid1869.8599,-2493.2256,13.554710.0);
                    
IslandName="Los Santos";
                    }
                    else if(
IsPlayerInRangeOfPoint(playerid20.0,-1437.0648,48.4609,14.1484)
                    {
                    
Island[San_Fierro][playerid] = SetPlayerFlightCheckpoint(playerid, -1437.0648,48.4609,14.148410.0);
                    
IslandName="San Fierro";
                    }
                    else if(
IsPlayerInRangeOfPoint(playerid20.0,1476.5433,1465.9758,10.8281)
                    {
                    
Island[Las_Venturas][playerid]=SetPlayerFlightCheckpoint(playerid1476.5433,1465.9758,10.828110.0);
                    
IslandName="Las Venturas";
                    }
                    
FirstAPName[playerid] = IslandName;
                    
format(szString128"Go to %s to pick up the passengers!"IslandName);
                    
WorkTimer[playerid] = SetTimerEx("WorkingMinutes"60000true"i"playerid);
                    
SendClientMessage(playeridCOLOR_LIGHTGREENszString); 



Re: Do you guys no what is the problem - dr.lozer - 18.10.2012

Try this:

Pawn
Код:
if(IsPlayerInRangeOfPoint(playerid, 20.0,1869.8599,-2493.2256,13.5547))
{
          Island[Los_Santos][playerid] = SetPlayerFlightCheckpoint(playerid, 1869.8599,-2493.2256,13.5547, 10.0);
          IslandName="Los Santos";
}
else if(IsPlayerInRangeOfPoint(playerid, 20.0,-1437.0648,48.4609,14.1484))
{
          Island[San_Fierro][playerid] = SetPlayerFlightCheckpoint(playerid, -1437.0648,48.4609,14.1484, 10.0);
          IslandName="San Fierro";
}
else if(IsPlayerInRangeOfPoint(playerid, 20.0,1476.5433,1465.9758,10.8281))
{
          Island[Las_Venturas][playerid]=SetPlayerFlightCheckpoint(playerid, 1476.5433,1465.9758,10.8281, 10.0);
          IslandName="Las Venturas";
}
          FirstAPName[playerid] = IslandName;
          format(szString, 128, "Go to %s to pick up the passengers!", IslandName);

          WorkTimer[playerid] = SetTimerEx("WorkingMinutes", 60000, true, "i", playerid);
          SendClientMessage(playerid, COLOR_LIGHTGREEN, szString);
          return 1;
}



Re: Do you guys no what is the problem - ejul - 18.10.2012

thanks Dr...