12.05.2012, 14:50
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:
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;
}