[Pomoc]Errori

Započeo Richyâ„¢, Avgust 19, 2012, 20:50:10 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:Explosion Roleply Alpha V.1.0
Detaljan opis problema:Ubacio sam cmd port sa NL moda,ali mi izbacuje ove errore
C:\Documents and Settings\Dell  6400\Desktop\Game mods\Explosion Roleply Alpha V.1.0\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(35852) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Dell  6400\Desktop\Game mods\Explosion Roleply Alpha V.1.0\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(35852) : error 017: undefined symbol "cmd_port"
C:\Documents and Settings\Dell  6400\Desktop\Game mods\Explosion Roleply Alpha V.1.0\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(35852) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Dell  6400\Desktop\Game mods\Explosion Roleply Alpha V.1.0\Explosion Roleply Alpha V.1.0\gamemodes\explosion.pwn(35852) : 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.

Dio skripte:CMD:port(playerid, params[])
{
if(PI[playerid][Admin] > 0 || PI[playerid][GM] > 0 || IsPlayerAdmin(playerid))
{
    new Lokacija;
    if(sscanf(params, "i", Lokacija))
    {
        SCM(playerid, SVETLOPLAVA, "Koristite: /port [Broj lokacije]");
SCM(playerid, BELA, "|____________________________ Dostupne lokacije ____________________________|");
SCM(playerid, BELA, "| 1: Burg | 2: Spawn unutra | 3: Spawn spolja | 4: Aerodrom | 5: Banka | 6: Mount Chilliad");
SCM(playerid, BELA, "| 7: Bolnica | 8: Policija | 9: AmmuNation | 10: Kolodvor | 11: Autosalon | 12: Autoskola");
  SCM(playerid, BELA, "| 13: Event vozila | 14: Area51 | 15: NL trka | 16: Farma | 17: Grove Street | 18: Plantaza");
  SCM(playerid, BELA, "| 19: Sprunk fabrika | 20: San Fierro | 21: Las Venturas | 22: BigRace | 23: OffRoad Race");
  SCM(playerid, BELA, "| 24: Mehanicarska radionica | 25: Rally | 26: Karting | 27: LV Drift | 28: MC Race");
  SCM(playerid, BELA, "| 29: SF Hill Drift | 30:LV parking | 31: Lider salon");
SCM(playerid, BELA, "|___________________________________________________________________________|");
return 1;
}
if(Lokacija == 1)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1193.9370, -882.7886, 43.0527);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste kod gl. Burga!");
}
else
{
    SetPlayerPos_H(playerid, 1193.9370, -882.7886, 43.0527);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste kod gl. Burga!");
}
}
else if(Lokacija == 2)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1776.7378, -1357.0854, 15.3580);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na spawn!");
}
else
{
    SetPlayerPos_H(playerid, 1776.7378, -1357.0854, 15.3580);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na spawn!");
}
}
else if(Lokacija == 3)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1826.3762, -1369.7384, 13.9839);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na spawn!");
}
else
{
    SetPlayerPos_H(playerid, 1826.3762, -1369.7384, 13.9839);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na spawn!");
}
}
else if(Lokacija == 4)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1962.6006, -2181.7441, 13.1202);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LS aerodrom!");
}
else
{
    SetPlayerPos_H(playerid, 1962.6006, -2181.7441, 13.1202);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LS aerodrom!");
}
}
else if(Lokacija == 5)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1443.7198, -1038.7651, 23.2309);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred banke!");
}
else
{
    SetPlayerPos_H(playerid, 1443.7198, -1038.7651, 23.2309);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred banke!");
}
}
else if(Lokacija == 6)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -2336.7830, -1639.5317, 483.3585);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na MC!");
}
else
{
    SetPlayerPos_H(playerid, -2336.7830, -1639.5317, 483.3585);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na MC!");
}
}
else if(Lokacija == 7)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1205.3981, -1334.6404, 12.9740);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred bolnice!");
}
else
{
    SetPlayerPos_H(playerid, 1205.3981, -1334.6404, 12.9740);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred bolnice!");
}
}
else if(Lokacija == 8)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1529.6, -1691.2, 13.3);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred policije!");
}
else
{
    SetPlayerPos_H(playerid, 1529.6, -1691.2, 13.3);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred policije!");
}
}
else if(Lokacija == 9)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1363.4161, -1279.1832, 13.5469);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred Gun Shopa!");
}
else
{
    SetPlayerPos_H(playerid, 1363.4161, -1279.1832, 13.5469);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred Gun Shopa!");
}
}
else if(Lokacija == 10)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1690.6935, -1867.3462, 13.5418);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na kolodvor!");
}
else
{
    SetPlayerPos_H(playerid, 1690.6935, -1867.3462, 13.5418);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na kolodvor!");
}
}
else if(Lokacija == 11)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 547.7065, -1276.2399, 16.8190);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do autosalona!");
}
else
{
    SetPlayerPos_H(playerid, 547.7065, -1276.2399, 16.8190);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do autosalona!");
}
}
else if(Lokacija == 12)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2063.7930, -1917.1278, 13.5469);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do autoskole!");
}
else
{
    SetPlayerPos_H(playerid, 2063.7930, -1917.1278, 13.5469);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do autoskole!");
}
}
else if(Lokacija == 13)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1706.1100, 1302.1501, 10.8279);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do event vozila!");
}
else
{
    SetPlayerPos_H(playerid, 1706.1100, 1302.1501, 10.8279);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do event vozila!");
}
}
else if(Lokacija == 14)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 135.2655, 1920.3068, 19.0662);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste u Area51!");
}
else
{
    SetPlayerPos_H(playerid, 135.2655, 1920.3068, 19.0662);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste u Area51!");
}
}
else if(Lokacija == 15)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2837.5615, -1885.6294, 10.5079);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na NL trku!");
}
else
{
    SetPlayerPos_H(playerid, 2837.5615, -1885.6294, 10.5079);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na NL trku!");
}
}
else if(Lokacija == 16)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -383.8207, -1401.9355, 24.0377);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na farmu!");
}
else
{
    SetPlayerPos_H(playerid, -383.8207, -1401.9355, 24.0377);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na farmu!");
}
}
else if(Lokacija == 17)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2490.2122, -1663.3207, 12.8883);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste u Grove Street!");
}
else
{
    SetPlayerPos_H(playerid, 2490.2122, -1663.3207, 12.8883);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste u Grove Street!");
}
}
else if(Lokacija == 18)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 278.7071, 1129.3660, 9.5060);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na plantazu!");
}
else
{
    SetPlayerPos_H(playerid, 278.7071, 1129.3660, 9.5060);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na plantazu!");
}
}
else if(Lokacija == 19)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1338.0747, 285.4546, 19.1268);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do fabrike Sprunka!");
}
else
{
    SetPlayerPos_H(playerid, 1338.0747, 285.4546, 19.1268);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do fabrike Sprunka!");
}
}
else if(Lokacija == 20)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -1417.0, -295.8, 14.1);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na SF aerodrom!");
}
else
{
    SetPlayerPos_H(playerid, -1417.0, -295.8, 14.1);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na SF aerodrom!");
}
}
else if(Lokacija == 21)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1699.2, 1435.1, 10.7);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV aerodrom!");
}
else
{
    SetPlayerPos_H(playerid, 1699.2, 1435.1, 10.7);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV aerodrom!");
}
}
else if(Lokacija == 22)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -554.0451, 2570.2334, 53.1419);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na BigRace!");
}
else
{
    SetPlayerPos_H(playerid, -554.0451, 2570.2334, 53.1419);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na BigRace!");
}
}
else if(Lokacija == 23)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1068.5022, -308.8015, 73.6171);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Offroad Race!");
}
else
{
    SetPlayerPos_H(playerid, 1068.5022, -308.8015, 73.6171);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Offroad Race!");
}
}
else if(Lokacija == 24)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2411.2793, -1485.3578, 23.4530);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do mehanicarske radionice!");
}
else
{
    SetPlayerPos_H(playerid, 2411.2793, -1485.3578, 23.4530);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do mehanicarske radionice!");
}
}
else if(Lokacija == 25)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1535.1616, -9.8256, 22.1530);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Rally!");
}
else
{
    SetPlayerPos_H(playerid, 1535.1616, -9.8256, 22.1530);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Rally!");
}
}
else if(Lokacija == 26)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2085.8059, 1852.6553, 9.9558);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Karting!");
}
else
{
    SetPlayerPos_H(playerid, 2085.8059, 1852.6553, 9.9558);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Karting!");
}
}
else if(Lokacija == 27)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1512.3378, 1480.0943, 10.4316);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV Drift!");
}
else
{
    SetPlayerPos_H(playerid, 1512.3378, 1480.0943, 10.4316);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV Drift!");
}
}
else if(Lokacija == 28)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -2385.9922,-2180.7507,33.0161);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na MC Race!");
}
else
{
    SetPlayerPos_H(playerid, -2385.9922,-2180.7507,33.0161);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na MC Race!");
}
}
else if(Lokacija == 29)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -2437.0808,-618.3660,132.2852);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na SF Hill Drift Race!");
}
else
{
    SetPlayerPos_H(playerid, -2437.0808,-618.3660,132.2852);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na SF Hill Drift Race!");
}
}
if(Lokacija == 30)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2857.2861328125, 2392.2282714844,10.51478099823);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV Parking!");
}
else
{
    SetPlayerPos_H(playerid, 2857.2861328125, 2392.2282714844,10.51478099823);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV Parking!");
}
}
if(Lokacija == 31)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2200.5600585938,1386.6560058594,10.51478099823);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do lider salona!");
}
else
{
    SetPlayerPos_H(playerid, 2200.5600585938,1386.6560058594,10.51478099823);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do lider salona!");
}
}
else return SCM(playerid, GRAD2, "  (greska) Nevazeca lokacija!");
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
new hIme[MAX_PLAYER_NAME];
RPIme(playerid, hIme);
new ip[16], logstring[256];
GetPlayerIp(playerid, ip, sizeof ip);
format(logstring, sizeof logstring, "| Izvrsio: %s | Lokacija: %d | IP: %s", hIme, Lokacija, ip);
UpisiLog(FAJL_PORTLOG, logstring);

}
else return SCM(playerid, GRAD2, "  (greska) Niste autorizovani da koristite ovu komandu!");
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)://///



Bump,tema otisla na  drugu stranu ...

Citat: AleX_ poslato Avgust 20, 2012, 19:48:14 POSLE PODNE
Probaj ovako



CMD:port(playerid, params[])
{
if(PI[playerid][Admin] > 0 || PI[playerid][GM] > 0 || IsPlayerAdmin(playerid))
{
    new Lokacija;
    if(sscanf(params, "i", Lokacija))
    {
        SCM(playerid, SVETLOPLAVA, "Koristite: /port [Broj lokacije]");
SCM(playerid, BELA, "|____________________________ Dostupne lokacije ____________________________|");
SCM(playerid, BELA, "| 1: Burg | 2: Spawn unutra | 3: Spawn spolja | 4: Aerodrom | 5: Banka | 6: Mount Chilliad");
SCM(playerid, BELA, "| 7: Bolnica | 8: Policija | 9: AmmuNation | 10: Kolodvor | 11: Autosalon | 12: Autoskola");
  SCM(playerid, BELA, "| 13: Event vozila | 14: Area51 | 15: NL trka | 16: Farma | 17: Grove Street | 18: Plantaza");
  SCM(playerid, BELA, "| 19: Sprunk fabrika | 20: San Fierro | 21: Las Venturas | 22: BigRace | 23: OffRoad Race");
  SCM(playerid, BELA, "| 24: Mehanicarska radionica | 25: Rally | 26: Karting | 27: LV Drift | 28: MC Race");
  SCM(playerid, BELA, "| 29: SF Hill Drift | 30:LV parking | 31: Lider salon");
SCM(playerid, BELA, "|___________________________________________________________________________|");
return 1;
}
if(Lokacija == 1)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1193.9370, -882.7886, 43.0527);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste kod gl. Burga!");
}
else
{
    SetPlayerPos_H(playerid, 1193.9370, -882.7886, 43.0527);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste kod gl. Burga!");
}
}
else if(Lokacija == 2)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1776.7378, -1357.0854, 15.3580);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na spawn!");
}
else
{
    SetPlayerPos_H(playerid, 1776.7378, -1357.0854, 15.3580);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na spawn!");
}
}
else if(Lokacija == 3)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1826.3762, -1369.7384, 13.9839);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na spawn!");
}
else
{
    SetPlayerPos_H(playerid, 1826.3762, -1369.7384, 13.9839);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na spawn!");
}
}
else if(Lokacija == 4)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1962.6006, -2181.7441, 13.1202);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LS aerodrom!");
}
else
{
    SetPlayerPos_H(playerid, 1962.6006, -2181.7441, 13.1202);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LS aerodrom!");
}
}
else if(Lokacija == 5)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1443.7198, -1038.7651, 23.2309);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred banke!");
}
else
{
    SetPlayerPos_H(playerid, 1443.7198, -1038.7651, 23.2309);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred banke!");
}
}
else if(Lokacija == 6)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -2336.7830, -1639.5317, 483.3585);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na MC!");
}
else
{
    SetPlayerPos_H(playerid, -2336.7830, -1639.5317, 483.3585);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na MC!");
}
}
else if(Lokacija == 7)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1205.3981, -1334.6404, 12.9740);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred bolnice!");
}
else
{
    SetPlayerPos_H(playerid, 1205.3981, -1334.6404, 12.9740);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred bolnice!");
}
}
else if(Lokacija == 8)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1529.6, -1691.2, 13.3);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred policije!");
}
else
{
    SetPlayerPos_H(playerid, 1529.6, -1691.2, 13.3);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred policije!");
}
}
else if(Lokacija == 9)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1363.4161, -1279.1832, 13.5469);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred Gun Shopa!");
}
else
{
    SetPlayerPos_H(playerid, 1363.4161, -1279.1832, 13.5469);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred Gun Shopa!");
}
}
else if(Lokacija == 10)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1690.6935, -1867.3462, 13.5418);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na kolodvor!");
}
else
{
    SetPlayerPos_H(playerid, 1690.6935, -1867.3462, 13.5418);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na kolodvor!");
}
}
else if(Lokacija == 11)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 547.7065, -1276.2399, 16.8190);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do autosalona!");
}
else
{
    SetPlayerPos_H(playerid, 547.7065, -1276.2399, 16.8190);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do autosalona!");
}
}
else if(Lokacija == 12)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2063.7930, -1917.1278, 13.5469);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do autoskole!");
}
else
{
    SetPlayerPos_H(playerid, 2063.7930, -1917.1278, 13.5469);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do autoskole!");
}
}
else if(Lokacija == 13)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1706.1100, 1302.1501, 10.8279);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do event vozila!");
}
else
{
    SetPlayerPos_H(playerid, 1706.1100, 1302.1501, 10.8279);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do event vozila!");
}
}
else if(Lokacija == 14)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 135.2655, 1920.3068, 19.0662);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste u Area51!");
}
else
{
    SetPlayerPos_H(playerid, 135.2655, 1920.3068, 19.0662);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste u Area51!");
}
}
else if(Lokacija == 15)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2837.5615, -1885.6294, 10.5079);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na NL trku!");
}
else
{
    SetPlayerPos_H(playerid, 2837.5615, -1885.6294, 10.5079);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na NL trku!");
}
}
else if(Lokacija == 16)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -383.8207, -1401.9355, 24.0377);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na farmu!");
}
else
{
    SetPlayerPos_H(playerid, -383.8207, -1401.9355, 24.0377);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na farmu!");
}
}
else if(Lokacija == 17)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2490.2122, -1663.3207, 12.8883);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste u Grove Street!");
}
else
{
    SetPlayerPos_H(playerid, 2490.2122, -1663.3207, 12.8883);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste u Grove Street!");
}
}
else if(Lokacija == 18)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 278.7071, 1129.3660, 9.5060);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na plantazu!");
}
else
{
    SetPlayerPos_H(playerid, 278.7071, 1129.3660, 9.5060);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na plantazu!");
}
}
else if(Lokacija == 19)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1338.0747, 285.4546, 19.1268);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do fabrike Sprunka!");
}
else
{
    SetPlayerPos_H(playerid, 1338.0747, 285.4546, 19.1268);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do fabrike Sprunka!");
}
}
else if(Lokacija == 20)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -1417.0, -295.8, 14.1);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na SF aerodrom!");
}
else
{
    SetPlayerPos_H(playerid, -1417.0, -295.8, 14.1);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na SF aerodrom!");
}
}
else if(Lokacija == 21)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1699.2, 1435.1, 10.7);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV aerodrom!");
}
else
{
    SetPlayerPos_H(playerid, 1699.2, 1435.1, 10.7);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV aerodrom!");
}
}
else if(Lokacija == 22)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -554.0451, 2570.2334, 53.1419);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na BigRace!");
}
else
{
    SetPlayerPos_H(playerid, -554.0451, 2570.2334, 53.1419);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na BigRace!");
}
}
else if(Lokacija == 23)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1068.5022, -308.8015, 73.6171);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Offroad Race!");
}
else
{
    SetPlayerPos_H(playerid, 1068.5022, -308.8015, 73.6171);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Offroad Race!");
}
}
else if(Lokacija == 24)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2411.2793, -1485.3578, 23.4530);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do mehanicarske radionice!");
}
else
{
    SetPlayerPos_H(playerid, 2411.2793, -1485.3578, 23.4530);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do mehanicarske radionice!");
}
}
else if(Lokacija == 25)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1535.1616, -9.8256, 22.1530);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Rally!");
}
else
{
    SetPlayerPos_H(playerid, 1535.1616, -9.8256, 22.1530);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Rally!");
}
}
else if(Lokacija == 26)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2085.8059, 1852.6553, 9.9558);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Karting!");
}
else
{
    SetPlayerPos_H(playerid, 2085.8059, 1852.6553, 9.9558);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Karting!");
}
}
else if(Lokacija == 27)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1512.3378, 1480.0943, 10.4316);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV Drift!");
}
else
{
    SetPlayerPos_H(playerid, 1512.3378, 1480.0943, 10.4316);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV Drift!");
}
}
else if(Lokacija == 28)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -2385.9922,-2180.7507,33.0161);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na MC Race!");
}
else
{
    SetPlayerPos_H(playerid, -2385.9922,-2180.7507,33.0161);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na MC Race!");
}
}
else if(Lokacija == 29)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -2437.0808,-618.3660,132.2852);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na SF Hill Drift Race!");
}
else
{
    SetPlayerPos_H(playerid, -2437.0808,-618.3660,132.2852);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na SF Hill Drift Race!");
}
}
if(Lokacija == 30)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2857.2861328125, 2392.2282714844,10.51478099823);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV Parking!");
}
else
{
    SetPlayerPos_H(playerid, 2857.2861328125, 2392.2282714844,10.51478099823);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV Parking!");
}
}
if(Lokacija == 31)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2200.5600585938,1386.6560058594,10.51478099823);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do lider salona!");
}
else
{
    SetPlayerPos_H(playerid, 2200.5600585938,1386.6560058594,10.51478099823);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do lider salona!");
}
}
else return SCM(playerid, GRAD2, "  (greska) Nevazeca lokacija!");
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
new hIme[MAX_PLAYER_NAME];
RPIme(playerid, hIme);
new ip[16], logstring[256];
GetPlayerIp(playerid, ip, sizeof ip);
format(logstring, sizeof logstring, "| Izvrsio: %s | Lokacija: %d | IP: %s", hIme, Lokacija, ip);
UpisiLog(FAJL_PORTLOG, logstring);
                }
        }
else return SCM(playerid, GRAD2, "  (greska) Niste autorizovani da koristite ovu komandu!");
return 1;
}




Probo sam,kada sam to ubacio nemoze compile uopste odma me izbaci..

KažeÅ¡ explosion, liči mi na NL  8)
CMD:port(playerid, params[])
{
if(PI[playerid][Admin] > 0 || PI[playerid][GM] > 0 || IsPlayerAdmin(playerid))
{
    new Lokacija;
    if(sscanf(params, "i", Lokacija))
    {
        SCM(playerid, SVETLOPLAVA, "Koristite: /port [Broj lokacije]");
SCM(playerid, BELA, "|____________________________ Dostupne lokacije ____________________________|");
SCM(playerid, BELA, "| 1: Burg | 2: Spawn unutra | 3: Spawn spolja | 4: Aerodrom | 5: Banka | 6: Mount Chilliad");
SCM(playerid, BELA, "| 7: Bolnica | 8: Policija | 9: AmmuNation | 10: Kolodvor | 11: Autosalon | 12: Autoskola");
  SCM(playerid, BELA, "| 13: Event vozila | 14: Area51 | 15: NL trka | 16: Farma | 17: Grove Street | 18: Plantaza");
  SCM(playerid, BELA, "| 19: Sprunk fabrika | 20: San Fierro | 21: Las Venturas | 22: BigRace | 23: OffRoad Race");
  SCM(playerid, BELA, "| 24: Mehanicarska radionica | 25: Rally | 26: Karting | 27: LV Drift | 28: MC Race");
  SCM(playerid, BELA, "| 29: SF Hill Drift | 30:LV parking | 31: Lider salon");
SCM(playerid, BELA, "|___________________________________________________________________________|");
return 1;
}
if(Lokacija == 1)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1193.9370, -882.7886, 43.0527);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste kod gl. Burga!");
}
else
{
    SetPlayerPos_H(playerid, 1193.9370, -882.7886, 43.0527);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste kod gl. Burga!");
}
}
else if(Lokacija == 2)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1776.7378, -1357.0854, 15.3580);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na spawn!");
}
else
{
    SetPlayerPos_H(playerid, 1776.7378, -1357.0854, 15.3580);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na spawn!");
}
}
else if(Lokacija == 3)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1826.3762, -1369.7384, 13.9839);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na spawn!");
}
else
{
    SetPlayerPos_H(playerid, 1826.3762, -1369.7384, 13.9839);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na spawn!");
}
}
else if(Lokacija == 4)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1962.6006, -2181.7441, 13.1202);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LS aerodrom!");
}
else
{
    SetPlayerPos_H(playerid, 1962.6006, -2181.7441, 13.1202);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LS aerodrom!");
}
}
else if(Lokacija == 5)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1443.7198, -1038.7651, 23.2309);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred banke!");
}
else
{
    SetPlayerPos_H(playerid, 1443.7198, -1038.7651, 23.2309);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred banke!");
}
}
else if(Lokacija == 6)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -2336.7830, -1639.5317, 483.3585);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na MC!");
}
else
{
    SetPlayerPos_H(playerid, -2336.7830, -1639.5317, 483.3585);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na MC!");
}
}
else if(Lokacija == 7)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1205.3981, -1334.6404, 12.9740);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred bolnice!");
}
else
{
    SetPlayerPos_H(playerid, 1205.3981, -1334.6404, 12.9740);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred bolnice!");
}
}
else if(Lokacija == 8)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1529.6, -1691.2, 13.3);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred policije!");
}
else
{
    SetPlayerPos_H(playerid, 1529.6, -1691.2, 13.3);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred policije!");
}
}
else if(Lokacija == 9)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1363.4161, -1279.1832, 13.5469);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred Gun Shopa!");
}
else
{
    SetPlayerPos_H(playerid, 1363.4161, -1279.1832, 13.5469);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste ispred Gun Shopa!");
}
}
else if(Lokacija == 10)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1690.6935, -1867.3462, 13.5418);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na kolodvor!");
}
else
{
    SetPlayerPos_H(playerid, 1690.6935, -1867.3462, 13.5418);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na kolodvor!");
}
}
else if(Lokacija == 11)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 547.7065, -1276.2399, 16.8190);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do autosalona!");
}
else
{
    SetPlayerPos_H(playerid, 547.7065, -1276.2399, 16.8190);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do autosalona!");
}
}
else if(Lokacija == 12)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2063.7930, -1917.1278, 13.5469);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do autoskole!");
}
else
{
    SetPlayerPos_H(playerid, 2063.7930, -1917.1278, 13.5469);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do autoskole!");
}
}
else if(Lokacija == 13)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1706.1100, 1302.1501, 10.8279);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do event vozila!");
}
else
{
    SetPlayerPos_H(playerid, 1706.1100, 1302.1501, 10.8279);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do event vozila!");
}
}
else if(Lokacija == 14)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 135.2655, 1920.3068, 19.0662);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste u Area51!");
}
else
{
    SetPlayerPos_H(playerid, 135.2655, 1920.3068, 19.0662);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste u Area51!");
}
}
else if(Lokacija == 15)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2837.5615, -1885.6294, 10.5079);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na NL trku!");
}
else
{
    SetPlayerPos_H(playerid, 2837.5615, -1885.6294, 10.5079);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na NL trku!");
}
}
else if(Lokacija == 16)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -383.8207, -1401.9355, 24.0377);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na farmu!");
}
else
{
    SetPlayerPos_H(playerid, -383.8207, -1401.9355, 24.0377);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na farmu!");
}
}
else if(Lokacija == 17)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2490.2122, -1663.3207, 12.8883);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste u Grove Street!");
}
else
{
    SetPlayerPos_H(playerid, 2490.2122, -1663.3207, 12.8883);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste u Grove Street!");
}
}
else if(Lokacija == 18)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 278.7071, 1129.3660, 9.5060);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na plantazu!");
}
else
{
    SetPlayerPos_H(playerid, 278.7071, 1129.3660, 9.5060);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na plantazu!");
}
}
else if(Lokacija == 19)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1338.0747, 285.4546, 19.1268);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do fabrike Sprunka!");
}
else
{
    SetPlayerPos_H(playerid, 1338.0747, 285.4546, 19.1268);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do fabrike Sprunka!");
}
}
else if(Lokacija == 20)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -1417.0, -295.8, 14.1);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na SF aerodrom!");
}
else
{
    SetPlayerPos_H(playerid, -1417.0, -295.8, 14.1);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na SF aerodrom!");
}
}
else if(Lokacija == 21)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1699.2, 1435.1, 10.7);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV aerodrom!");
}
else
{
    SetPlayerPos_H(playerid, 1699.2, 1435.1, 10.7);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV aerodrom!");
}
}
else if(Lokacija == 22)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -554.0451, 2570.2334, 53.1419);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na BigRace!");
}
else
{
    SetPlayerPos_H(playerid, -554.0451, 2570.2334, 53.1419);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na BigRace!");
}
}
else if(Lokacija == 23)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1068.5022, -308.8015, 73.6171);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Offroad Race!");
}
else
{
    SetPlayerPos_H(playerid, 1068.5022, -308.8015, 73.6171);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Offroad Race!");
}
}
else if(Lokacija == 24)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2411.2793, -1485.3578, 23.4530);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do mehanicarske radionice!");
}
else
{
    SetPlayerPos_H(playerid, 2411.2793, -1485.3578, 23.4530);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do mehanicarske radionice!");
}
}
else if(Lokacija == 25)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1535.1616, -9.8256, 22.1530);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Rally!");
}
else
{
    SetPlayerPos_H(playerid, 1535.1616, -9.8256, 22.1530);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Rally!");
}
}
else if(Lokacija == 26)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2085.8059, 1852.6553, 9.9558);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Karting!");
}
else
{
    SetPlayerPos_H(playerid, 2085.8059, 1852.6553, 9.9558);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na Karting!");
}
}
else if(Lokacija == 27)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 1512.3378, 1480.0943, 10.4316);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV Drift!");
}
else
{
    SetPlayerPos_H(playerid, 1512.3378, 1480.0943, 10.4316);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV Drift!");
}
}
else if(Lokacija == 28)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -2385.9922,-2180.7507,33.0161);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na MC Race!");
}
else
{
    SetPlayerPos_H(playerid, -2385.9922,-2180.7507,33.0161);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na MC Race!");
}
}
else if(Lokacija == 29)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, -2437.0808,-618.3660,132.2852);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na SF Hill Drift Race!");
}
else
{
    SetPlayerPos_H(playerid, -2437.0808,-618.3660,132.2852);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na SF Hill Drift Race!");
}
}
if(Lokacija == 30)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2857.2861328125, 2392.2282714844,10.51478099823);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV Parking!");
}
else
{
    SetPlayerPos_H(playerid, 2857.2861328125, 2392.2282714844,10.51478099823);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste na LV Parking!");
}
}
if(Lokacija == 31)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        NovaPozicijaV(playerid, 2200.5600585938,1386.6560058594,10.51478099823);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do lider salona!");
}
else
{
    SetPlayerPos_H(playerid, 2200.5600585938,1386.6560058594,10.51478099823);
        SCM(playerid, GRAD2, "  (teleport) Teleportovani ste do lider salona!");
}
}
else return SCM(playerid, GRAD2, "  (greska) Nevazeca lokacija!");
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
new hIme[MAX_PLAYER_NAME];
RPIme(playerid, hIme);
new ip[16], logstring[256];
GetPlayerIp(playerid, ip, sizeof ip);
format(logstring, sizeof logstring, "| Izvrsio: %s | Lokacija: %d | IP: %s", hIme, Lokacija, ip);
UpisiLog(FAJL_PORTLOG, logstring);
                }
        }
else return SCM(playerid, GRAD2, "  (greska) Niste autorizovani da koristite ovu komandu!");
return 1;
}

I updateaj pawno include..