22.02.2012, 21:40
Galera Esto com um Problema Alguйm Pode me ajudar Por favor e no Comando /orgs ele Nгo Aparece o Nome da Org nem o Lнder ganha + rep
pawn Код:
if(strcmp(cmdtext, "/orgs", true) == 0){
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, pname);
format(string, sizeof(string), "/Orgs/orgs%d.ini", dini_Int(file, "Orgs"));
new DialogOrgs[1500];
new aname[MAX_PLAYERS];
new tmp[128]; tmp = strtok(cmdtext, idx);
if(IsPlayerConnected(playerid))
{
format(string, 128, " {7AADFF}1 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {ADC7D9}2 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {6CD950}3 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {F7819A}4 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {337EFF}5 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {48A3E0}6 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {6AB4E6}7 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {C2CBD1}8 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {EDD893}9 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {93EDDE}10 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {BFA873}11 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {BF9B47}12 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {8136B3}13 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {00DB1D}14 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {EDE187}15 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {BDA34D}16 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {CB42E3}17 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {E1ED00}18 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {FF0000}19 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {C90000}20 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {46F274}21 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {A87A31}22 - %s: {FFFFFF}%s\n");
strcat(DialogOrgs,string);
format(string, 128, " {FF0066}23 - %s: {FFFFFF}%s\n\n");
strcat(DialogOrgs,string);
ShowPlayerDialog(playerid, 8723, DIALOG_STYLE_MSGBOX, "Lista de Lнderes das Organizaзхes", DialogOrgs, "Ok", "Ok");
}
for(new a=0;a<MAX_ORGS;a++){
format(string, sizeof(string), "/Orgs/orgs%d.ini", a);
dini_Set(string, "Nome", tmp);
dini_IntSet(string, "TMembro1", 1);
dini_Set(string, "Membro1", aname);
}
return true;
}