SA-MP Forums Archive
how to show it for all players? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to show it for all players? (/showthread.php?tid=146854)



how to show it for all players? - iJumbo - 09.05.2010

Код:
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;
}



Re: how to show it for all players? - [MWR]Blood - 09.05.2010

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;
}



Re: how to show it for all players? - Mujib - 09.05.2010

Код:
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!


Re: how to show it for all players? - iJumbo - 09.05.2010

error 017: undefined symbol "i"


Re: how to show it for all players? - Mujib - 09.05.2010

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


Re: how to show it for all players? - iJumbo - 09.05.2010

lol i have to make new i; ??


Re: how to show it for all players? - ¤Adas¤ - 09.05.2010

Код:
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;
}



Re: how to show it for all players? - Killa_ - 09.05.2010

Код:
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;
}



Re: how to show it for all players? - iJumbo - 09.05.2010

work ty


Re: how to show it for all players? - ¤Adas¤ - 09.05.2010

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