Help -
keller012 - 09.01.2011
Every time I type this command:
pawn Код:
if(strcmp(cmd, "/infoorg", true) == 0)
{
new strdialog[500];
if (PlayerToPoint(3, playerid,251.5544,117.6165,1003.2188))
{
format(Vaga1,sizeof(Vaga1),"%s",dini_Get("/Infoorg/PM/Vagas.txt","Vaga1"));
format(Vaga2,sizeof(Vaga2),"%s",dini_Get("/Infoorg/PM/Vagas.txt","Vaga2"));
format(Vaga3,sizeof(Vaga3),"%s",dini_Get("/Infoorg/PM/Vagas.txt","Vaga3"));
format(Vaga4,sizeof(Vaga4),"%s",dini_Get("/Infoorg/PM/Vagas.txt","Vaga4"));
format(Vaga5,sizeof(Vaga5),"%s",dini_Get("/Infoorg/PM/Vagas.txt","Vaga5"));
format(Vaga6,sizeof(Vaga6),"%s",dini_Get("/Infoorg/PM/Vagas.txt","Vaga6"));
format(Vaga7,sizeof(Vaga7),"%s",dini_Get("/Infoorg/PM/Vagas.txt","Vaga7"));
format(Vaga8,sizeof(Vaga8),"%s",dini_Get("/Infoorg/PM/Vagas.txt","Vaga8"));
format(Lider,sizeof(Lider),"%s",dini_Get("/Infoorg/PM/Vagas.txt","Lider"));
format(strdialog, sizeof(strdialog),"Lider:%s\nVaga 1:%s\nVaga 2:%s\nVaga 3:%s\nVaga 4:%s\nVaga 5:%s\nVaga 6:%s\nVaga 7:%s\nVaga 8:%s",Lider,Vaga1,Vaga2,Vaga3,Vaga4,Vaga5,Vaga6,Vaga7,Vaga8);
ShowPlayerDialog(playerid, infoKeller1, DIALOG_STYLE_LIST, "{FF6600}Policia Militar - Infoorg[TERRA:RPG]", strdialog, "Ok", "Sair");
}
return 1;
}
It appears that the server:
This only started after I changed by DIALOG_STYLE_MSGBOX DIALOG_STYLE_LIST ...
AW: Help -
Kmitska - 09.01.2011
are you on this point if you write it?:
cords: 251.5544,117.6165,1003.2188
Re: Help -
keller012 - 09.01.2011
to use the command has to be at this point
Re: Help -
Spiral - 09.01.2011
Thats because the ShowPlayerDialog is not correct. Replace ''strdialog'' with "Option One\nOption Two" and so on
Also the response isnt the same, check the wiki.
Re: Help -
zSuYaNw - 09.01.2011
LoL 9 Formats
pawn Код:
if(strcmp(cmd, "/infoorg", true) == 0)
{
new strdialog[500];
if (PlayerToPoint(3, playerid,251.5544,117.6165,1003.2188))
{
format(strdialog, sizeof(strdialog),"Lider:%s\nVaga 1:%s\nVaga 2:%s\nVaga 3:%s\nVaga 4:%s\nVaga 5:%s\nVaga 6:%s\nVaga 7:%s\nVaga 8:%s",dini_Get("/Infoorg/PM/Vagas.txt","Lider"),
dini_Get("/Infoorg/PM/Vagas.txt","Vaga1"),
dini_Get("/Infoorg/PM/Vagas.txt","Vaga2"),
dini_Get("/Infoorg/PM/Vagas.txt","Vaga3"),
dini_Get("/Infoorg/PM/Vagas.txt","Vaga4"),
dini_Get("/Infoorg/PM/Vagas.txt","Vaga5"),
dini_Get("/Infoorg/PM/Vagas.txt","Vaga6"),
dini_Get("/Infoorg/PM/Vagas.txt","Vaga7"),
dini_Get("/Infoorg/PM/Vagas.txt","Vaga8"));
ShowPlayerDialog(playerid, infoKeller1, DIALOG_STYLE_LIST, "{FF6600}Policia Militar - Infoorg[TERRA:RPG]", strdialog, "Ok", "Sair");
}
return 1;
}
Re: Help -
TheYoungCapone - 09.01.2011
you probly need to indent it it looks weird to me.