ReadMyTextQ Not showing ID?
#1

pawn Код:
stock ReadMyTextQ(playerid,color,format2[],output[])
{
for(new i=0; i<GetMaxPlayers(); i++)
if(IsPlayerAdmin(i))
{
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s ** %s (%s): %s", format2, name, playerid, output);
SendClientMessage(i, color, string);
SendClientMessage(playerid, color, "Your question has been sent to all online admins");
}
}
Ingame it appears

Server Question ** Torran (): Test question

Which it should, But the players id is missing, Why is this?
Reply
#2

delete No comment.
Reply
#3

Quote:
Originally Posted by Phento
What do you want to bring out from him?
What do you mean by that?
Reply
#4

Quote:
Originally Posted by Torran
pawn Код:
format(string, sizeof(string), "%s ** %s (%s): %s", format2, name, playerid, output);
playerid is an integer, not string, so use %i or %d
Reply
#5

Lol i forgot about that :P yeah ty
Reply
#6

delete
Reply
#7

Quote:
Originally Posted by Phento
Quote:
Originally Posted by Torran
pawn Код:
stock ReadMyTextQ(playerid,color,format2[],output[])
{
for(new i=0; i<GetMaxPlayers(); i++)
if(IsPlayerAdmin(i))
{
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s ** %s (%s): %s", format2, name, playerid, output);
SendClientMessage(i, color, string);
SendClientMessage(playerid, color, "Your question has been sent to all online admins");
}
5 Online rcon admin

5 *
pawn Код:
SendClientMessage(playerid, color, "Your question has been sent to all online admins");
10 online rcon admin

10 *
pawn Код:
SendClientMessage(playerid, color, "Your question has been sent to all online admins");

What are you on about? Anyway i fixed this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)