Textdraw Help
#1

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 :/
Reply
#2

(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).
Reply
#3

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.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)