Textdrawsetstring Gives An error?
#1

Hi, i haven't scripted in a while now, and started over again, but i ran onto this error:

Код:
C:\Users\XXXXXX\Desktop\SA-MP SERV\gamemodes\RP.pwn(417) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
i've handled before with this error i belive, but i can't remember ;<

this is the line:
Код:
	TextDrawSetString(SrvMSG, text);
I've allready tried formatting the text as the following:
Код:
	new string2[256];
	format(string2, sizeof(string2), "%s", text);
	TextDrawSetString(SrvMSG, string2);
	TextDrawShowForAll(SrvMSG);
but is giving errors:

Код:
C:\Users\XXXXXX\Desktop\SA-MP SERV\gamemodes\RP.pwn(418) : error 029: invalid expression, assumed zero
C:\Users\XXXXXX\Desktop\SA-MP SERV\gamemodes\RP.pwn(418) : warning 215: expression has no effect
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

forward(string2, sizeof(string2), "%s", text);


maybe format??

format(string2, sizeof(string2), "%s", text);
Reply
#3

Quote:
Originally Posted by adsy
forward(string2, sizeof(string2), "%s", text);


maybe format??

format(string2, sizeof(string2), "%s", text);
sorry, yeah ment that :$ i was scripting and making that treath at the same time :$
it was format, editing
Reply
#4

bump
Reply
#5

no-one ;-[?
Reply
#6

http://forum.sa-mp.com/index.php?topic=67900.0

Quote:
b) Do not bump
Some people apparently think they are important enough to bump their own topic after 10 minutes.
You can bump topics when the last reply is at least 12 hours old.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)