Errors on formatting a textdraw.
#1

Errors :
Code:
(12153) : error 035: argument type mismatch (argument 1)
D(12153) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Line 12153:
pawn Code:
format(radiohud, sizeof(radiohud), "Radio Frequancy: %d", PlayerInfo[playerid][pWalkieFreq]);
radiohud :
pawn Code:
new Text:radiohud;
Reply
#2

You can create a textdraw with TextDrawCreate.
that radiohud is a string, so it should be:

radiohud[128];

[128] is the cellseize of the string, which means the length of the string.

You could insert a string into a textdraw by using TextDrawSetString.

Wiki this stuff up, it is very easy to understand.




If you like to, + rep me
Reply
#3

https://sampwiki.blast.hk/wiki/TextDrawSetString
Reply
#4

pawn Code:
(12153) : error 035: argument type mismatch (argument 1)
(12153) : error 035: argument type mismatch (argument 1)
(12154) : warning 213: tag mismatch
(12154) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Lines :
pawn Code:
format(radiohud, sizeof(radiohud), "Radio Frequancy: %d", PlayerInfo[playerid][pWalkieFreq]);
                    TextDrawSetString(playerid, radiohud);
Reply
#5

A string is not a textdraw.
do it like this:

new text:thetextdraw;
new radiohud[128];

format(radiohud, sizeof(radiohud), "Radio Frequancy: %d", PlayerInfo[playerid][pWalkieFreq]);
TextDrawSetString(thetextdraw, radiohud);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)