String and textdraw problem
#2

pawn Код:
new acctext[64];
new totalaccs;
mysql_query("SELECT * FROM players");
mysql_store_result();
mysql_fetch_field_row(totalaccs,"STRINGWHICHHOLDSTHECOUNT");//Change the "STRINGWHICHHOLDSTHECOUNT" with your var which saves the total count
mysql_free_result();
format(acctext, sizeof(acctext), "Total accounts: %d", totalaccs);

TextDrawSetString(totalacc, acctext);
TextDrawShowForPlayer(playerid, totalacc); //totalacc is the textdraw.
Should Work try it out

#EDITED: My bad, code was kinda wrong
Reply


Messages In This Thread
String and textdraw problem - by DCatalin - 09.11.2013, 12:20
Re: String and textdraw problem - by -=Dar[K]Lord=- - 09.11.2013, 13:39
Re: String and textdraw problem - by DCatalin - 09.11.2013, 14:06
Re: String and textdraw problem - by -=Dar[K]Lord=- - 09.11.2013, 14:13
Re: String and textdraw problem - by DCatalin - 09.11.2013, 14:47
Re: String and textdraw problem - by KingHual - 09.11.2013, 14:54
Re: String and textdraw problem - by DCatalin - 09.11.2013, 17:47

Forum Jump:


Users browsing this thread: 2 Guest(s)