Need help
#1

Is there something wrong in this line? It says that the arguments doesn't match the definition
PHP код:
CelebrityText TextDrawCreate(150.0,360.0,"Fans: %d",CelebrityInfo[playerid][cFans]); 
Reply
#2

Check this out: wiki.sa-mp.com/wiki/TextDrawCreate

TextDrawCreate has 3 parameters.
Reply
#3

Thanks! How can I add a specifier, specifically %d, to a textdraw? Is it possible?
Reply
#4

Yes, use format:

PHP код:
new tmp[11 7];
format(tmp,sizeof(tmp),"Fans: %d",CelebrityInfo[playerid][cFans]);
CelebrityText TextDrawCreate(150.0,360.0,tmp); 
Reply
#5

Forgot everything about format. Thanks! +rep to both of ya'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)