how to show it for all players?
#1

Код:
dcmd_mess(playerid,params[])
{
	if(!strlen(params)) {
	SendClientMessage(playerid,RED,"USAGGIO: /mess [TEXT]");
	return SendClientMessage(playerid, RED, ""); }
    ShowPlayerDialog(playerid, 899, DIALOG_STYLE_MSGBOX,"<<<<<<<<<ANNUNCIO>>>>>>>>>", params,"OK","OK");
	return 1;
}
Reply
#2

pawn Код:
dcmd_mess(playerid,params[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
    if(!strlen(params)) {
    SendClientMessage(playerid,RED,"USAGGIO: /mess [TEXT]");
    return SendClientMessage(playerid, RED, ""); }
    ShowPlayerDialog(i, 899, DIALOG_STYLE_MSGBOX,"<<<<<<<<<ANNUNCIO>>>>>>>>>", params,"OK","OK");
    return 1;
}
Reply
#3

Код:
dcmd_mess(playerid,params[])
{
	if(!strlen(params))	{
	SendClientMessage(playerid,RED,"USAGGIO: /mess [TEXT]");
	return SendClientMessage(playerid, RED, "");}
	for(new i=0; i<MAX_SLOTS; i++){
 	ShowPlayerDialog(i, 899, DIALOG_STYLE_MSGBOX,"<<<<<<<<<ANNUNCIO>>>>>>>>>", params,"OK","OK")}
	return 1;
}
EDIT: DAMN WHILE I WAS MAKING IT YOU POSTED BEFORE ME!
Reply
#4

error 017: undefined symbol "i"
Reply
#5

Quote:
Originally Posted by gigi1223
error 017: undefined symbol "i"
Which one are you using?
Reply
#6

lol i have to make new i; ??
Reply
#7

Код:
dcmd_mess(playerid,params[])
{
	if(!strlen(params)) return SendClientMessage(playerid,RED,"USAGGIO: /mess [TEXT]");
    for(new i; i<GetMaxPlayers(); i++) ShowPlayerDialog(i, 899, DIALOG_STYLE_MSGBOX,"<<<<<<<<<ANNUNCIO>>>>>>>>>", params,"OK","OK");
	return 1;
}
Reply
#8

Код:
dcmd_mess(playerid,params[])
{
   if(!strlen(params)) return SendClientMessage(playerid,RED,"USAGGIO: /mess [TEXT]");
   for(new i = 0; i <= GetMaxPlayers(); i++) ShowPlayerDialog(i, 899, DIALOG_STYLE_MSGBOX,"<<<<<<<<<ANNUNCIO>>>>>>>>>", params,"OK","OK");
   return 1;
}
Reply
#9

work ty
Reply
#10

Quote:
Originally Posted by Killa_
Код:
dcmd_mess(playerid,params[])
{
   if(!strlen(params)) return SendClientMessage(playerid,RED,"USAGGIO: /mess [TEXT]");
   for(new i = 0; i <= GetMaxPlayers(); i++) ShowPlayerDialog(i, 899, DIALOG_STYLE_MSGBOX,"<<<<<<<<<ANNUNCIO>>>>>>>>>", params,"OK","OK");
   return 1;
}
My example is better and uses less space.
EDIT: No problem, we are here to help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)