02.08.2011, 13:46
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:
i try to do after the "You canceled the dialog." that:
but it dont 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; } |
Quote:
if(IsPlayerInAnyVehicle(playerid)) { SetVehicleVirtualWorld(vehicleid, GetPlayerVirtualWorld(playerid)); PutPlayerInVehicle(playerid,GetPlayerVehicleID(pla yerid),GetPlayerVirtualWorld(playerid)); } |