04.02.2013, 23:27
Im trying to use a textdraw to do this
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
hud[playerid] = CreatePlayerTextDraw(playerid, 5, 241.0, "Name:%s", pname);
and no its not set up like this in the real script im just showing you these lines.
But when i compile i get 1 warning
warning 202: number of arguments does not match definition
and i know it is because ,pname at the end but i have to do that to be able to add the players name into the textdraw.Can you do this or not?
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
hud[playerid] = CreatePlayerTextDraw(playerid, 5, 241.0, "Name:%s", pname);
and no its not set up like this in the real script im just showing you these lines.
But when i compile i get 1 warning
warning 202: number of arguments does not match definition
and i know it is because ,pname at the end but i have to do that to be able to add the players name into the textdraw.Can you do this or not?