Textdraw. - 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: Textdraw. (
/showthread.php?tid=336593)
Textdraw. -
TheDominator - 22.04.2012
I made this command here:
Код:
if(strcmp(cmdtext, "/hidetext", true, 10) == 0)
{
TextDrawHideForPlayer(Textdraw1);
return 1;
}
And I get 2 errors which are:
C:\Users\graham\Desktop\DIS.pwn(3271) : warning 213: tag mismatch
C:\Users\graham\Desktop\DIS.pwn(3271) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
Can someone please help me with this? I will give them +Rep!
Re: Textdraw. -
2KY - 22.04.2012
pawn Код:
if(strcmp(cmdtext, "/hidetext", true, 10) == 0)
{
TextDrawHideForPlayer(playerid, Textdraw1);
return 1;
}
You need to specify who to hide it for.
Alternatively, you could do:
pawn Код:
if(strcmp(cmdtext, "/hidetext", true, 10) == 0)
{
TextDrawHideForAll(Textdraw1);
return 1;
}
Re: Textdraw. -
TheDominator - 22.04.2012
Quote:
Originally Posted by 2KY
pawn Код:
if(strcmp(cmdtext, "/hidetext", true, 10) == 0) { TextDrawHideForPlayer(playerid, Textdraw1); return 1; }
You need to specify who to hide it for.
Alternatively, you could do:
pawn Код:
if(strcmp(cmdtext, "/hidetext", true, 10) == 0) { TextDrawHideForAll(Textdraw1); return 1; }
|
Can't believe I forgot to add playerid :/ Still a noob, thanks for the help and I have +Rep your profile.
Re: Textdraw. -
2KY - 23.04.2012
Quote:
Originally Posted by TheDominator
Can't believe I forgot to add playerid :/ Still a noob, thanks for the help and I have +Rep your profile.
|
We all have to start somewhere.
Re: Textdraw. -
mentalen1 - 23.04.2012
how to do? Level minute as the image just give me a link please help me what is the image of Level in minutes and speedometar to [img]
http://zaslike.com/files/n4luxgi53tn8uukvzak7.png [/ img]