Textdraw Help - 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 Help (
/showthread.php?tid=625479)
Textdraw Help -
Kruno88 - 02.01.2017
Line:Textdraw4[playerid] =
Код:
CreatePlayerTextDraw(playerid, 586.666381, 353.007324, MafiaKills);
Error:
Код:
C:\Users\Korisnik\Desktop\Policija protiv mafije\gamemodes\Gamemode.pwn(547) : error 035: argument type mismatch (argument 4)
What I'm trying to do is to make a Team Kill counter as a textdraw.But I keep getting error :/
Re: Textdraw Help -
SyS - 02.01.2017
(playerid, Float:x, Float:y, text[])
thats the parameter it should be string not integer you can format the MafiaKills to a string and use that string in that parameter or use
Valstr (but take a look @ the warning before using).
Re: Textdraw Help -
Kruno88 - 02.01.2017
Quote:
Originally Posted by Sreyas
(playerid, Float  , Float:y, text[])
thats the parameter it should be string not text you can format the MafiaKills to a string and use that string in that parameter
|
On other textdraws I put the same parametars.But it still works.If I put a normal text instead of MafiaKills it works fine.
Re: Textdraw Help -
Codeah - 02.01.2017
Text is a string, so you need to use ""
CreatePlayerTextDraw(playerid, 586.666381, 353.007324, "MafiaKills");
unless MafiaKills is an actual variable. Then make sure the variable is a string. If not, convert it into a string.
To convert an integer to a string, use
Valstr