error :D - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error :D (
/showthread.php?tid=594810)
error :D -
sanamalik400 - 23.11.2015
hi all anyone can make GameTextForPlayer instead of textdraw. i made but eror found expression have no effect
PHP код:
if(IsPlayerInDynamicCP(playerid, CP[SNAKE]) && UnderAttack[SNAKE] == 1 && IsPlayerCapturing[playerid][SNAKE] == 1)
{
CountVar[playerid][SNAKE]--;
new str1[124];
TextDrawShowForPlayer(playerid, CountText[playerid]);
format(str1, sizeof(str1),"~r~%d ~y~Left To Capture.", CountVar[playerid][SNAKE]);
TextDrawSetString(CountText[playerid], str1);
}
Re: error :D -
Riddick94 - 23.11.2015
Erase TextDrawShowForPlayer and TextDrawSetString lines.
Add:
pawn Код:
GameTextForPlayer(playerid, str1, REFRESH_TIME, STYLE);
Under format(str1, (...));
Re: error :D -
jlalt - 23.11.2015
PHP код:
if(IsPlayerInDynamicCP(playerid, CP[SNAKE]) && UnderAttack[SNAKE] == 1 && IsPlayerCapturing[playerid][SNAKE] == 1)
{
CountVar[playerid][SNAKE]--;
new str1[124];
format(str1, sizeof(str1),"~r~%d ~y~Left To Capture.", CountVar[playerid][SNAKE]);
GameTextForPlayer(playerid,str1,time,style);
}
https://sampwiki.blast.hk/wiki/GameTextStyle
Re: error :D -
sanamalik400 - 23.11.2015
oh thanks alot i was forgot style