Textdraw showing to ID 0 :S - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraw showing to ID 0 :S (
/showthread.php?tid=110560)
Textdraw showing to ID 0 :S -
stevestelford - 27.11.2009
Hey Guys
I have robberys in my server and when a player enters a checkpoint and types /robcasino a textdraw appears for the player, but it also appears to ID 0? Any Ideas Guys
new Text:Textdrawauto1[MAX_PLAYERS];
Then I Use TextDrawShowForPlayer(playerid,Textdrawauto1[playerid]);
Re: Textdraw showing to ID 0 :S -
member - 27.11.2009
Show us your /robcasino command
Re: Textdraw showing to ID 0 :S -
stevestelford - 27.11.2009
Idont think its in the /robcasino command, its in the Public RobbingCasinoCountdown
Here:
http://pastebin.com/m73186377
Thanks For Looking
Re: Textdraw showing to ID 0 :S -
BMUK - 27.11.2009
Код:
public robbingcasinocountdown(playerid)
{
Remove playerid and just leave it like that ->
public robbingcasinocountdown()
Also remove any reference to 'playerid' in the function, replacing it with a 'i'
Your doing a loop, no need for the playerid param in the function
Thats why it will show to playerid: 0
Re: Textdraw showing to ID 0 :S -
stevestelford - 27.11.2009
Thanks ! xD