Virtual World
#5

work!

wait you can help me, if i in car and i change the virtual world, the car still in the first virtual world,
i can do that the car change the virtual world?


this is the code to changeworld:
Quote:

new string[256];
if(dialogid == ChangeWorld_Dialog)
{
if(!response) return SendClientMessage(playerid, 0xFFFFFF00, "You canceled the dialog.");
SetPlayerVirtualWorld(playerid, strval(inputtext));
format(string, sizeof(string), "Your virtual World change to : %d, GetPlayerVirtualWorld(playerid));
SendClientMessage(playerid, 0xFFFFFF00, string);
return 0;
}

i try to do after the "You canceled the dialog." that:
Quote:

if(IsPlayerInAnyVehicle(playerid))
{
SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid));
PutPlayerInVehicle(playerid,GetPlayerVehicleID(pla yerid),GetPlayerVirtualWorld(playerid));
}

but it dont work =\
Reply


Messages In This Thread
Virtual World - by shahartal - 02.08.2011, 11:44
Re: Virtual World - by MetalScript - 02.08.2011, 12:22
Re: Virtual World - by shahartal - 02.08.2011, 12:27
Re: Virtual World - by antonio112 - 02.08.2011, 12:42
Re: Virtual World - by shahartal - 02.08.2011, 13:46
Re: Virtual World - by shahartal - 03.08.2011, 12:35
Re: Virtual World - by shahartal - 04.08.2011, 12:22
Re: Virtual World - by MadeMan - 04.08.2011, 12:30
Re: Virtual World - by shahartal - 04.08.2011, 17:24

Forum Jump:


Users browsing this thread: 1 Guest(s)