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


Messages In This Thread
Textdrawsetstring Gives An error? - by rensfromrpas - 28.02.2010, 13:11
Re: Textdrawsetstring Gives An error? - by adsy - 28.02.2010, 14:11
Re: Textdrawsetstring Gives An error? - by rensfromrpas - 28.02.2010, 14:21
Re: Textdrawsetstring Gives An error? - by rensfromrpas - 28.02.2010, 16:14
Re: Textdrawsetstring Gives An error? - by rensfromrpas - 28.02.2010, 19:49
Re: Textdrawsetstring Gives An error? - by Sergei - 28.02.2010, 19:55

Forum Jump:


Users browsing this thread: 1 Guest(s)