[Pomoc] Exit iz vozila

Započeo [TS] Killer NO. 1, Maj 07, 2011, 15:01:40 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Cyber
Detaljan opis problema: Ovako pri svakom ulasku u rent me freez-a i dok se ne unfreez nema izlaza..treba mi komanda /exit za izlazak iz tih auta atko..imam exit za kuce..ali mi ne radi na vozili
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

znaci pod komandu od kuce/exit dodas       
if (IsARentableBike(carid))
{
TogglePlayerControllable(playerid, 1);
SafeRemovePlayerFromVehicle(playerid);
}

Citat: $--L84S--$ poslato Maj 07, 2011, 15:20:08 POSLE PODNE
znaci pod komandu od kuce/exit dodas       
if (IsARentableBike(carid))
{
TogglePlayerControllable(playerid, 1);
SafeRemovePlayerFromVehicle(playerid);
}


e to danke :D

samo kako bi to onda izgledalo posto sma bot evo komande
CMD:exit(playerid, params[])
{
    if(IsPlayerConnected(playerid))
   {
       for(new i = 0; i < sizeof(HouseInfo); i++)
      {
          if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
          {
              SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pHouseEntered] = 0;
PlayerInfo[playerid][pLocal] = i;
PlayerInfo[playerid][pVW] = i;
SetPlayerVirtualWorld(playerid,0);
          }
        }
     }
}


CMD:exit(playerid, params[]) 

    if(IsPlayerConnected(playerid)) 
   { 
       for(new i = 0; i < sizeof(HouseInfo); i++) 
      { 
          if (PlayerToPoint(3, playerid,HouseInfo<i>[hExitx], HouseInfo<i>[hExity], HouseInfo<i>[hExitz])) 
          { 
              SetPlayerInterior(playerid,0); 
   SetPlayerPos(playerid,HouseInfo<i>[hEntrancex],HouseInfo<i>[hEntrancey],HouseInfo<i>[hEntrancez]); 
   PlayerInfo[playerid][pInt] = 0; 
   PlayerInfo[playerid][pHouseEntered] = 0; 
   PlayerInfo[playerid][pLocal] = i; 
   PlayerInfo[playerid][pVW] = i; 
   SetPlayerVirtualWorld(playerid,0); 
          } 
        } 
     }
    if (IsARentableBike(carid)) 
         { 
            TogglePlayerControllable(playerid, 1); 
            SafeRemovePlayerFromVehicle(playerid); 
         }   
}</i></i></i></i></i></i> 
   

ako nece probaj

CMD:exit(playerid, params[]) 

    if(IsPlayerConnected(playerid)) 
   { 
       for(new i = 0; i < sizeof(HouseInfo); i++) 
      { 
          if (PlayerToPoint(3, playerid,HouseInfo<i>[hExitx], HouseInfo<i>[hExity], HouseInfo<i>[hExitz])) 
          { 
              SetPlayerInterior(playerid,0); 
   SetPlayerPos(playerid,HouseInfo<i>[hEntrancex],HouseInfo<i>[hEntrancey],HouseInfo<i>[hEntrancez]); 
   PlayerInfo[playerid][pInt] = 0; 
   PlayerInfo[playerid][pHouseEntered] = 0; 
   PlayerInfo[playerid][pLocal] = i; 
   PlayerInfo[playerid][pVW] = i; 
   SetPlayerVirtualWorld(playerid,0); 
          } 
        } 
     }
   {
    if (IsARentableBike(carid)) 
         { 
            TogglePlayerControllable(playerid, 1); 
            SafeRemovePlayerFromVehicle(playerid); 
         }
    } 
}</i></i></i></i></i></i> 


btw. di ti je return 1; ?
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Nema ga :/ tako sam dobio tu konadu od eXtrem-a

imam sledece errore


C:\Users\Arsic\Desktop\Cyb3r RolePlay [0.3c]\gamemodes\Exon.pwn(28700) : error 033: array must be indexed (variable "HouseInfo")
C:\Users\Arsic\Desktop\Cyb3r RolePlay [0.3c]\gamemodes\Exon.pwn(28700) : warning 213: tag mismatch
C:\Users\Arsic\Desktop\Cyb3r RolePlay [0.3c]\gamemodes\Exon.pwn(28700) : warning 215: expression has no effect
C:\Users\Arsic\Desktop\Cyb3r RolePlay [0.3c]\gamemodes\Exon.pwn(28700) : error 001: expected token: ";", but found "]"
C:\Users\Arsic\Desktop\Cyb3r RolePlay [0.3c]\gamemodes\Exon.pwn(28700) : error 029: invalid expression, assumed zero
C:\Users\Arsic\Desktop\Cyb3r RolePlay [0.3c]\gamemodes\Exon.pwn(28700) : 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.

ubacio sam ovu komandu

CMD:exit(playerid, params[])
{
    if(IsPlayerConnected(playerid))
   {
       for(new i = 0; i < sizeof(HouseInfo); i++)
      {
          if (PlayerToPoint(3, playerid,HouseInfo<i>[</i>hExitx], HouseInfo<i>[</i>hExity], HouseInfo<i>[</i>hExitz]))
          {
              SetPlayerInterior(playerid,0);
   SetPlayerPos(playerid,HouseInfo<i>[</i>hEntrancex],HouseInfo<i>[</i>hEntrancey],HouseInfo<i>[</i>hEntrancez]);
   PlayerInfo[playerid][pInt] = 0;
   PlayerInfo[playerid][pHouseEntered] = 0;
   PlayerInfo[playerid][pLocal] = i;
   PlayerInfo[playerid][pVW] = i;
   SetPlayerVirtualWorld(playerid,0);
          }
        }
     }
   {
    if (IsARentableBike(carid))
         {
            TogglePlayerControllable(playerid, 1);
            SafeRemovePlayerFromVehicle(playerid);
         }
    }
}


zamjesni sa
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √


CMD:exit(playerid, params[])
{
    if(IsPlayerConnected(playerid))
   {
       for(new i = 0; i < sizeof(HouseInfo); i++)
      {
      if (IsARentableBike(carid))
{
TogglePlayerControllable(playerid, 1);
SafeRemovePlayerFromVehicle(playerid);
}
          if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
          {
              SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pHouseEntered] = 0;
PlayerInfo[playerid][pLocal] = i;
PlayerInfo[playerid][pVW] = i;
SetPlayerVirtualWorld(playerid,0);
          }
        }
     }
}


eto u tom code-u da bi mogao samo c/p .. :) @System32 - pise ti samo u postu "zamjeni sa" nista drugo -.-

sada mi izletila ova 2 errora :S
C:\Users\Arsic\Desktop\Cyb3r RolePlay [0.3c]\gamemodes\Exon.pwn(28699) : error 017: undefined symbol "IsARentableBike"
C:\Users\Arsic\Desktop\Cyb3r RolePlay [0.3c]\gamemodes\Exon.pwn(28702) : error 017: undefined symbol "SafeRemovePlayerFromVehicle"