help with basic mysql
#7

I want to do something like that

stock GetPlayerNameByID(playerid)

This function will return the player name by his ID (incremented)

SELECT username FROM player WHERE id = %d

And then I can format message with
format(string, sizeof(string), "%s is (not) connected !", GetPlayerNameByID(playerid));
(and many other stuff like this)
Reply


Messages In This Thread
help with basic mysql - by Veng3eur - 10.03.2015, 19:27
Re: help with basic mysql - by Veng3eur - 11.03.2015, 14:03
AW: help with basic mysql - by Kaliber - 11.03.2015, 14:04
Re: help with basic mysql - by Veng3eur - 11.03.2015, 14:07
AW: help with basic mysql - by Kaliber - 11.03.2015, 14:15
Re: help with basic mysql - by Misiur - 11.03.2015, 14:41
Re: help with basic mysql - by Veng3eur - 11.03.2015, 14:47

Forum Jump:


Users browsing this thread: 1 Guest(s)