Interior problems
#1

Hi everyone, i've got this problem when setting the player's interior, before this i've set the interior to "1" for shamal interior.

Now i'm trying to set it to "14", but it won't change. The code does get called, but interior dosen't change.

pawn Код:
SendClientMessage(playerid, COLOR_LIGHTORANGE, "Captain: {FFFFFF}Welcome to San Fierro, thank you for flying with Moon Airlines!");
    SetPlayerPos(playerid, -1887.64404297,51.92456818,1054.75976562);
    SetPlayerVirtualWorld(playerid, playerid+21);
    SetPlayerInterior(playerid, 14);
    new string[128];
    format(string, sizeof(string), "VW: %d, INT: %d", GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
    SendClientMessage(playerid, COLOR_WHITE, string);
Reply
#2

What part of your gamemode the code is?
Reply
#3

Try this and if it does not work. Tell us where you're using it like the above poster above.

pawn Код:
SendClientMessage(playerid, COLOR_LIGHTORANGE, "Captain: {FFFFFF}Welcome to San Fierro, thank you for flying with Moon Airlines!");
    SetPlayerVirtualWorld(playerid, playerid+21);
    SetPlayerInterior(playerid, 14);
    SetPlayerPos(playerid, -1887.64404297,51.92456818,1054.75976562);
    new string[128];
    format(string, sizeof(string), "VW: %d, INT: %d", GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
    SendClientMessage(playerid, COLOR_WHITE, string);
Reply
#4

Quote:
Originally Posted by Joao Pedro
Посмотреть сообщение
What part of your gamemode the code is?
This code belongs to a stock function called Register(); this gets called at a timer 5 seconds after i've set the other interior/done other things.
Reply
#5

Do you think you're right that this is the exact Interior to be used?

Where did you create this interior at? MTA?
Reply
#6

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
Do you think you're right that this is the exact Interior to be used?

Where did you create this interior at? MTA?
That interior is the Airport interior, as it says on the wiki.
Reply
#7

I've debugged further, and the SetPlayerInterior wont work no matter what ID i put in, not even "0" will work. Could this be a bug?
Reply
#8

Anyone know the problem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)