Help[URGENT]
#1

I just updated from R2 to R5 and when I compiled it, It successfully compiled then executed the server, when I enter the game i cannot use the enter command and maybe some other commands haven't tried them all, can anyone help me?
Код:
CMD:enter(playerid, params[])
{

for(new i = 0; i < sizeof(HouseInfo); i++) {
        if (IsPlayerInRangeOfPoint(playerid,3,HouseInfo[i][hExteriorX], HouseInfo[i][hExteriorY], HouseInfo[i][hExteriorZ])) {
            if(PlayerInfo[playerid][pPhousekey] == i || PlayerInfo[playerid][pPhousekey2] == i || HouseInfo[i][hLock] == 0 || PlayerInfo[playerid][pRenting] == i) {
                SetPlayerInterior(playerid,HouseInfo[i][hHInteriorWorld]);
                PlayerInfo[playerid][pInt] = HouseInfo[i][hHInteriorWorld];
                PlayerInfo[playerid][pLocal] = i+6000;
                PlayerInfo[playerid][pVW] = i+6000;
                SetPlayerVirtualWorld(playerid, i+6000);
                if(HouseInfo[i][hCustomInterior] == 1) {
                    TogglePlayerControllable(playerid, 0);
                    GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
                    SetPVarInt(playerid, "LoadingObjects", 1);
                    SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
                }
                SetPlayerPos(playerid,HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
                SetPlayerFacingAngle(playerid,HouseInfo[i][hInteriorA]);
                SetCameraBehindPlayer(playerid);
                GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
				Streamer_UpdateEx(playerid, HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
            }
}
Reply
#2

It doesn't say an error when Compiling, the command just doesn't work in game, do i need to change them? Or is there anyone who knows how can I make it work?
Reply
#3

1. Indent your code with a clearer style
2. Use [ pawn ] tags [ /pawn ]
3. Don't double-post/bump, 30 MINUTES LATER. There is a modify button.
4. Try and debug your code, see what's getting call and what's not. See if the IsPlayerInRangeOfPoint function is returning true. Put a print() after it.
Reply
#4

I really can't find what the problem is in my code, Maybe its about the update on R5, Because the code is working fine on an R2 0.3c, Is there any need to upgrade to R5 if your R2 is working properly?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)