"Stay Within the World Boundries"
#1

Something very weird happened. After I select player and pressed "Spawn" (OnPlayerRequestSpawn) I got "Stay Within the World Boundries" like million times on a TextDraw or something..
Here's my OnPlayerRequestSpawn public:
pawn Код:
public OnPlayerRequestSpawn(playerid) {
    // Stats
    format(str, sizeof(str), "   Phone: %d        Money: %d        Bank Money: %d        Payday: %d", PlayerInfo[playerid][pPhone], PlayerInfo[playerid][pMoney], PlayerInfo[playerid][pBankMoney], PlayerInfo[playerid][pPayday]);
    StatsText[playerid] = TextDrawCreate(0.0, 436.0, str);
    TextDrawFont(StatsText[playerid], 1);
    TextDrawColor(StatsText[playerid], 0xFFFFFFAA);
    TextDrawUseBox(StatsText[playerid], 1);
    TextDrawBoxColor(StatsText[playerid], 0x000000AA);
    TextDrawSetShadow(StatsText[playerid], 1);
    TextDrawShowForPlayer(playerid, StatsText[playerid]);
   
    SetTimerEx("SetSkin", 1, false, "d", playerid);
    return 1;
}
Reply
#2

Need "AddPlayerClass" in OnGameModeInit.
Reply
#3

Yeah you must be missing:
pawn Код:
AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
under
pawn Код:
public OnGameModeInit()
Reply
#4

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)