SA-MP Forums Archive
Using Player's ID as Virutal 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: Using Player's ID as Virutal World. (/showthread.php?tid=499116)



Using Player's ID as Virutal World. - VerticalGaming - 06.03.2014

Hello there, I think i did something whrong here.

I'm using the player's ID as Virtual World.
As example.

Код:
new vw = GetPlayerID(playerid);

                SetPlayerVirtualWorld(playerid, vw);
                SetVehicleVirtualWorld(DLCar[11], vw);
Well the problem is, when i add this.. The compiler crashes.

I hope somebody could help me out?!


Re: Using Player's ID as Virutal World. - park4bmx - 06.03.2014

pawn Код:
SetPlayerVirtualWorld(playerid, playerid);
SetVehicleVirtualWorld(DLCar[11], playerid);
GetPlayerID finds the id of a play by their name ! that's why it crashes but you dont even need it.


Re: Using Player's ID as Virutal World. - VerticalGaming - 07.03.2014

Thank you.