09.06.2011, 11:01
I built a system of nitro, and everything work, but, after player id not 0 inside to car the TextDraw disappear!
* Not all the time, after somthing happend it's not showing at all for the player, but i don't know why
It's the only place where it appears -
[all the other is only change color box and TextDrawShowForPlayer so it's not matter i think ..]
I sitting on that for 8 hours !!! I'm desperate please help
* Not all the time, after somthing happend it's not showing at all for the player, but i don't know why
It's the only place where it appears -
PHP код:
new Text:NitroStuck[MAX_PLAYERS];
OnPlayerConnect
NitroStuck[playerid] = TextDrawCreate(604.000000, 393.000000, "_");
TextDrawBackgroundColor(NitroStuck[playerid], 255);
TextDrawFont(NitroStuck[playerid], 1);
TextDrawLetterSize(NitroStuck[playerid], -0.789998, 0.199998);
TextDrawColor(NitroStuck[playerid], -1);
TextDrawSetOutline(NitroStuck[playerid], 0);
TextDrawSetProportional(NitroStuck[playerid], 0);
TextDrawSetShadow(NitroStuck[playerid], 4);
TextDrawUseBox(NitroStuck[playerid], 1);
TextDrawBoxColor(NitroStuck[playerid], 397783295);
TextDrawTextSize(NitroStuck[playerid], 497.000000, -12.000000);
OnPlayerDisconnect
TextDrawDestroy(NitroStuck[playerid]);
OnPlayerStateChange
if(oldstate == PLAYER_STATE_DRIVER)
{
TextDrawHideForPlayer(playerid, NitroStuck[playerid]);
}
if(newstate == PLAYER_STATE_DRIVER)
{
TextDrawShowForPlayer(playerid, NitroStuck[playerid]);
}
I sitting on that for 8 hours !!! I'm desperate please help