warning 202: number of arguments does not match definition
#1

hmm something wrong right ?

Код:
new pclass[123];
format(pclass, sizeof(pclass), "Class:%d",GetClass(playerid));
//Class TextDraw
TextClass[playerid] = CreatePlayerTextDraw(playerid, 486.875000, 154.000015, "Class : %d" ,pclass);
Error Line
Код:
TextClass[playerid] = CreatePlayerTextDraw(playerid, 486.875000, 154.000015, "Class : %d" ,pclass);
EDIT : FIXED ! THANKS TO : JuanStone
Reply
#2

You need to have 4 positions, not 2.
Reply
#3

You can't do format a text with the function "TextDrawCreate".

First create the text and then format beams.

PHP код:
TextClass[playerid] = CreatePlayerTextDraw(playerid486.875000154.000015"");
After:
new 
string[45]; // change size.
format(stringsizeof(string), "Class : %d" ,pclass);
PlayerTextDrawSetString(playeridTextClass[playerid], string); // format textdraw. 
Reply
#4

Quote:
Originally Posted by JuanStone
Посмотреть сообщение
You can't do format a text with the function "TextDrawCreate".

First create the text and then format beams.

PHP код:
TextClass[playerid] = CreatePlayerTextDraw(playerid486.875000154.000015"");
After:
new 
string[45]; // change size.
format(stringsizeof(string), "Class : %d" ,pclass);
PlayerTextDrawSetString(playeridTextClass[playerid], string); // format textdraw. 
Ah thank you ! haha +1 rep to you two
Reply
#5

Hello!

You can also write it like this:
PHP код:
TextClass[playerid] = CreatePlayerTextDraw(playerid486.875000154.000015,pclass); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)