[Ajuda] Comandos /admins - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Comandos /admins (
/showthread.php?tid=631574)
Comandos /admins -
Maxwilson01 - 01.04.2017
Olб, estou com problema nгo consigo resolver.
Pesquisei em vбrios cantos que deu mais certo foi um que encontrei mas quando o for vai roda fica dando erro.
Se alguйm pode me ajuda fico grato.
PHP код:
CMD:admins(playerid, params[])
{
new Jogador[24];
new count = 0;
new msg[120];
for(new i=0, i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][Admin])
{
GetPlayerName(i,Jogador,24);
format(msg, sizeof(msg), "Staff online %s", Jogador);
SendClientMessage(playerid, -1, msg);
count++;
}
}
if(count == 0)
{
SendClientMessage(playerid,0xFF0000AA ,"No momento estamos sem staffs online!");
}
return 1;
}
Re: Comandos /admins -
didimk157 - 01.04.2017
que erro ?
Re: Comandos /admins -
Blitz22 - 01.04.2017
Tente assim !
PHP код:
CMD:admins(playerid, params[])
{
new Jogador[24];
new count = 0;
new msg[120];
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][Admin])
{
GetPlayerName(i,Jogador,24);
format(msg, sizeof(msg), "Staff online %s", Jogador);
SendClientMessage(playerid, -1, msg);
count++;
}
}
if(count == 0)
{
SendClientMessage(playerid,0xFF0000AA ,"No momento estamos sem staffs online!");
}
return 1;
}
Re: Comandos /admins -
Maxwilson01 - 01.04.2017
Funcionou vlw!
Mas fiquei integrado o que estava de errado ?
Re: Comandos /admins -
ViniBorn - 01.04.2017
Apenas a vнrgula
pawn Код:
for(new i=0, i < MAX_PLAYERS; i++)
pawn Код:
for(new i=0; i < MAX_PLAYERS; i++)
Re: Comandos /admins -
Maxwilson01 - 01.04.2017
Putz! entendi.
Vlw ViniBorn!
Re: Comandos /admins -
[BOPE]Seu._.Madruga - 01.04.2017
PHP код:
CMD:admins(playerid) {
new Jogador[24], count = 0, msg[120];
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) && PlayerInfo[i][Admin]) {
GetPlayerName(i, Jogador,24);
format(msg, sizeof(msg), "Staff online %s", Jogador);
SendClientMessage(playerid, -1, msg);
count++;
}
}
if(count == 0) SendClientMessage(playerid, 0xFF0000AA ,"No momento estamos sem staffs online!");
return 1;
}