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=303738)
TextDraw Help -
Jack_Leslie - 15.12.2011
Hi guys.
I'm having problems with TextDraws.
I get this error:
error 035: argument type mismatch (argument 3)
On this line:
pawn Код:
CustomDraw[playerid] = TextDrawCreate(329, 421, string);
How ever, I have this at the top of my script:
pawn Код:
new Text:CustomDraw[MAX_PLAYERS];
Re: TextDraw Help -
Jack_Leslie - 15.12.2011
What? there is no return, I didn't even say anything about any return? I know the error is to do with "CustomDraw[playerid]" because it only started giving the error when I changed CustomDraw to CustomDraw[playerid], but I need it to have an assigned playerid, and I've done it correctly so I don't know where the error is.
Re: TextDraw Help -
RoboN1X - 15.12.2011
https://sampwiki.blast.hk/wiki/TextDrawCreate
Re: TextDraw Help -
Jack_Leslie - 15.12.2011
I know you can use a string with a textdraw, which is what I'm trying to do. Like I said, I got the error when I added it with MAX_PLAYERS so I can assign a playerid, it has nothing to do with the string, if you wish to help me then please do but read what I say, and do some research first.