Why does it not change the VIRTUAL WORLD ?
#1

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 !!!
Reply
#2

this line makes no sense
pawn Код:
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(playerid));
can you tell me what are you trying to do?
Reply
#3

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
Reply
#4

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?
Reply
#5

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
Reply
#6

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);
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)