[Ajuda] /lideres - 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] /lideres (
/showthread.php?tid=282853)
[Ajuda] /lideres -
Cristhian - 12.09.2011
pawn Код:
if(!strcmp(cmdtext, "/lideres", true))
{
static
pName[64],
pFile[62]
;
for(new i; i != MAX_PLAYERS; ++i) if(IsPlayerConnected(i))
{
GetPlayerName(i, pName, MAX_PLAYER_NAME);
format(pFile, sizeof(pFile), "clas/%s.ini", pName);
if(!dini_Exists(pFile))
{
format(pName, sizeof(pName), "Lнder: %s Clan: %s", pName, dini_Get(pFile, "cla"));
SendClientMessage(playerid, -1, pName);
}
}
return true;
}
quando eu digito /lider nгo aparece nada..
Re: [Ajuda] /lideres -
JonathanFeitosa - 12.09.2011
pawn Код:
if(!strcmp(cmdtext, "/lideres", true))
{
static
pName[64],
pFile[62]
;
for(new i; i != MAX_PLAYERS; ++i) if(IsPlayerConnected(i))
{
GetPlayerName(i, pName, MAX_PLAYER_NAME);
format(pFile, sizeof(pFile), "clas/%s.ini", pName);
if(dini_Exists(pFile))
{
format(pName, sizeof(pName), "Lнder: %s Clan: %s", pName, dini_Get(pFile, "cla"));
SendClientMessage(playerid, -1, pName);
}
}
return true;
}
Re: [Ajuda] /lideres -
WLSF - 12.09.2011
Jonathan isso ai tб errado nгo?
Re: [Ajuda] /lideres -
Allan Kardec - 12.09.2011
Basta apenas tirar o
!, pois ele sу vai executar se o arquivo nгo existir.
@Willian
Nгo o cуdigo estб certo pela minha breve observaзгo.
Re: [Ajuda] /lideres -
WLSF - 12.09.2011
Quote:
Originally Posted by Allan Kardec
Basta apenas tirar o !, pois ele sу vai executar se o arquivo nгo existir.
@Willian
Nгo o cуdigo estб certo pela minha breve observaзгo.
|
Foi mal, й porque ele editou, tava
Re: [Ajuda] /lideres -
JonathanFeitosa - 12.09.2011
й porque eu tinha errado, depois eu vi й editei.
Re: [Ajuda] /lideres -
Cristhian - 13.09.2011
Valeu Jonathan