Ne tp me u drugi world

Započeo M!chaeL, Mart 17, 2018, 16:03:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Ne teleportuje me u drugi world
Dio skripte: [ pawn ]YCMD:joinpubg(playerid,params[],help)
{
   #pragma unused help
   if(UlogovanIgrac[playerid] == 0 || PI[playerid][pReg] == 0) return Error(playerid, "Nisi ulogovan/a ili nisi registrovan/a");
   if(IsPlayerInAnyVehicle(playerid)) return Error(playerid, "Ne mozes to u vozilu!");
   //if(pubg == 0) return Error(playerid, "PUBG nije pokrenut.");
   //lz_SetPlayerPos(playerid, kordinate);
   lz_PutPlayerInVehicle(playerid, 1232, 2);
   SetVehicleVirtualWorld(playerid, 999);
   SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 999);
   return 1;
}[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]//[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): //

Respect to Muma187, Sivir, Ino420, Tosic, Shomy Script, σgí, [CG]Johnny, [WG]Danny
Alfa Gaming Community Owner & Skripter
Alfa Gaming mod edit:100%

zab sam na to pawn
evo
[pawn]YCMD:joinpubg(playerid,params[],help)
{
   #pragma unused help
   if(UlogovanIgrac[playerid] == 0 || PI[playerid][pReg] == 0) return Error(playerid, "Nisi ulogovan/a ili nisi registrovan/a");
   if(IsPlayerInAnyVehicle(playerid)) return Error(playerid, "Ne mozes to u vozilu!");
   //if(pubg == 0) return Error(playerid, "PUBG nije pokrenut.");
   //lz_SetPlayerPos(playerid, kordinate);
   lz_PutPlayerInVehicle(playerid, 1232, 2);
   SetVehicleVirtualWorld(playerid, 999);
   SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 999);
   return 1;
}[/pawn]
Evo ovako, znaci napravio sam cmd /joinpubg i kad to ukucas tp te u drugi world al to ne radi tj ne geta me u drugi world

Citat: M!chaeL poslato Mart 17, 2018, 16:22:31 POSLE PODNE
zab sam na to pawn
evo
[pawn]YCMD:joinpubg(playerid,params[],help)
{
   #pragma unused help
   if(UlogovanIgrac[playerid] == 0 || PI[playerid][pReg] == 0) return Error(playerid, "Nisi ulogovan/a ili nisi registrovan/a");
   if(IsPlayerInAnyVehicle(playerid)) return Error(playerid, "Ne mozes to u vozilu!");
   //if(pubg == 0) return Error(playerid, "PUBG nije pokrenut.");
   //lz_SetPlayerPos(playerid, kordinate);
   lz_PutPlayerInVehicle(playerid, 1232, 2);
   SetVehicleVirtualWorld(playerid, 999);
   SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 999);
   return 1;
}[/pawn]
Evo ovako, znaci napravio sam cmd /joinpubg i kad to ukucas tp te u drugi world al to ne radi tj ne geta me u drugi world
[pawn]lz_SetPlayerPos(playerid, kordinate);[/pawn] da ti seta poziciju
Respect to Muma187, Sivir, Ino420, Tosic, Shomy Script, σgí, [CG]Johnny, [WG]Danny
Alfa Gaming Community Owner & Skripter
Alfa Gaming mod edit:100%

znam to, ali mi ne treba posto geta u auto

Citat: M!chaeL poslato Mart 17, 2018, 16:37:41 POSLE PODNE
znam to, ali mi ne treba posto geta u auto
ti zelis da tebe spWN u aj world?
Respect to Muma187, Sivir, Ino420, Tosic, Shomy Script, σgí, [CG]Johnny, [WG]Danny
Alfa Gaming Community Owner & Skripter
Alfa Gaming mod edit:100%

zelim da me spawna u drugi world u auto znaci ne u obicnom worldu (world 0) nego wolrd 999

http://wiki.sa-mp.com/wiki/SetPlayerVirtualWorld
tj.
[pawn]SetPlayerVirtualWorld(playerid, 999);[/pawn]
Respect to Muma187, Sivir, Ino420, Tosic, Shomy Script, σgí, [CG]Johnny, [WG]Danny
Alfa Gaming Community Owner & Skripter
Alfa Gaming mod edit:100%

Kad to stavim onda me ne geta u auto

zato jer nisi postavio da se tacnom id-u vozila postavlja odredjeni virtualworld stavio si playerid da je vozila.. a nije taj id
YCMD:joinpubg(playerid,params[],help)
{
#pragma unused help
if(UlogovanIgrac[playerid] == 0 || PI[playerid][pReg] == 0) return Error(playerid, "Nisi ulogovan/a ili nisi registrovan/a");
if(IsPlayerInAnyVehicle(playerid)) return Error(playerid, "Ne mozes to u vozilu!");
//if(pubg == 0) return Error(playerid, "PUBG nije pokrenut.");
//lz_SetPlayerPos(playerid, kordinate);
lz_PutPlayerInVehicle(playerid, 1232, 2);
SetVehicleVirtualWorld(1232,999);
SetPlayerVirtualWorld(playerid,999);
return 1;
}

Limiti - pogledaj limit za VirtualWorlds

hvala brate, ceo dan se mucim i ne kontam da je do toga hvl punoo