Why does it not change the VIRTUAL WORLD ? - 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: Why does it not change the VIRTUAL WORLD ? (
/showthread.php?tid=317331)
Why does it not change the VIRTUAL WORLD ? -
tal_peretz - 11.02.2012
I did -
PHP код:
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(playerid));
Messi[playerid][CarId] = CreateVehicle(Messi[playerid][CarModel], Messi[playerid][XM],Messi[playerid][YM],Messi[playerid][ZM],Messi[playerid][AM],random(15),random(15),1000);
SetVehicleVirtualWorld(Messi[playerid][CarId],GetPlayerVirtualWorld(playerid));
PutPlayerInVehicle(playerid,Messi[playerid][CarId],0);
And the player still in virtual world 0 even if his id are 1 or 2 ....
Why? :\ HELP !!!
Re: Why does it not change the VIRTUAL WORLD ? -
[KHK]Khalid - 11.02.2012
this line makes no sense
pawn Код:
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(playerid));
can you tell me what are you trying to do?
Re: Why does it not change the VIRTUAL WORLD ? -
Tanush123 - 11.02.2012
try
pawn Код:
new world = GetPlayerVirtualWorld(playerid);
SetPlayerVirtualWorld(playerid,world);
Messi[playerid][CarId] = CreateVehicle(Messi[playerid][CarModel], Messi[playerid][XM],Messi[playerid][YM],Messi[playerid][ZM],Messi[playerid][AM],random(15),random(15),1000);
SetVehicleVirtualWorld(Messi[playerid][CarId],world);
PutPlayerInVehicle(playerid,Messi[playerid][CarId],0);
i don't really actually get what you mean but i think you mean this
Re: Why does it not change the VIRTUAL WORLD ? -
[KHK]Khalid - 11.02.2012
Quote:
Originally Posted by Tanush123
try
pawn Код:
new world = GetPlayerVirtualWorld(playerid); SetPlayerVirtualWorld(playerid,world);
|
what's the point of that? this lines make no sense!. if the playerid's virtual world is 0 it will set it to 0 if 1 it will set it to 1 and so on that's pointless
--
tal_peretz, can you give us more explanation?
Re: Why does it not change the VIRTUAL WORLD ? -
Tanush123 - 11.02.2012
Quote:
Originally Posted by HellSphinX
what's the point of that? this lines make no sense!. if the playerid's virtual world is 0 it will set it to 0 if 1 it will set it to 1 and so on that's pointless
--
tal_peretz, can you give us more explanation?
|
i did not understand him
Re: Why does it not change the VIRTUAL WORLD ? -
Psymetrix - 11.02.2012
Quote:
Originally Posted by tal_peretz
And the player still in virtual world 0 even if his id are 1 or 2 ....
|
Do you mean that you want the players virtual world to change depending on there there ID?
pawn Код:
SetPlayerVirtualWorld(playerid, playerid);
Re: Why does it not change the VIRTUAL WORLD ? -
tal_peretz - 11.02.2012
Quote:
Originally Posted by Psymetrix
Do you mean that you want the players virtual world to change depending on there there ID?
pawn Код:
SetPlayerVirtualWorld(playerid, playerid);
|
:O what a mistake yes I mean that ... hhhh I left boob :X
THANKS