so kriege diese Warnings:
Work.pwn(47846) : warning 219: local variable "string2" shadows a variable at a preceding level
Work.pwn(47886) : warning 219: local variable "string2" shadows a variable at a preceding level
und das ist der Code:
if(dialogid == DIALOG_Adminhelp_Ad_Lvl_1_0)
{
switch(listitem)
{
case 0:
{
new string2[1024];
format(string2,sizeof string2," /admin(/a) \n\
/asellbiz \n\
/asellhouse \n\
/bigears \n\
/cam \n\
/carreset \n\
/check \n\
/checkwarns \n\
/cleartext \n\
/cnn \n\
/destroycars \n\
/edit \n\
/fixveh \n\
/freeze \n\
/getcar \n\
/gethere \n\
/getip \n\
/goto \n\
/gotobsn \n\
/gotocar \n\
/gotols \n\
/gotolv \n\
/gotomark \n\
/gotosf \n\
/gotozivi \n\
/hq \n\
/kick \n\
/kickres \n\
/logout \n\
/logoutall \n\
/logoutpl \n\
/mark \n\
/mute \n\
/o \n\
/oldcar");
ShowPlayerDialog(playerid,DIALOG_Adminhelp_Ad_Lvl_1_1,DIALOG_STYLE_LIST,"Adminhelp Admin Stufe 1 A-O",string2,"OK"," ") ;// DIALOG_Adminhelp_Supporter_Level_1 sind mehr als 32 Zeichen -> geht nicht
}
case 1:
{
new string2[1024];
format(string2,sizeof string2," /prison [Für Cheater] \n\
/recon \n\
/respawnthiscar(/rtc) \n\
/sban \n\
/sellsbiz \n\
/setarmor \n\
/setchamp \n\
/setfamily \n\
/sethp \n\
/setint \n\
/setteam \n\
/spawn \n\
/umbenennen \n\
/unfreeze \n\
/unprison \n\
/veh \n\
/warn \n\
/wisper(/w)");
ShowPlayerDialog(playerid,DIALOG_Adminhelp_Ad_Lvl_1_2,DIALOG_STYLE_LIST,"Adminhelp Admin Stufe 1 P-Z",string2,"OK"," ") ;// DIALOG_Adminhelp_Supporter_Level_1 sind mehr als 32 Zeichen -> geht nicht
}
}
}
Wo liegt da der Fehler??
PS: Weiter oben geht es mit String2
GrusS: Sonic
//EDIT LOL wieso wird da die hälfte nicht angezeigt ich poste ma one pwn code:
if(dialogid == DIALOG_Adminhelp_Ad_Lvl_1_0)
{
switch(listitem)
{
case 0:
{
new string2[1024];
format(string2,sizeof string2," /admin(/a) \n\
/asellbiz \n\
/asellhouse \n\
/bigears \n\
/cam \n\
/carreset \n\
/check \n\
/checkwarns \n\
/cleartext \n\
/cnn \n\
/destroycars \n\
/edit \n\
/fixveh \n\
/freeze \n\
/getcar \n\
/gethere \n\
/getip \n\
/goto \n\
/gotobsn \n\
/gotocar \n\
/gotols \n\
/gotolv \n\
/gotomark \n\
/gotosf \n\
/gotozivi \n\
/hq \n\
/kick \n\
/kickres \n\
/logout \n\
/logoutall \n\
/logoutpl \n\
/mark \n\
/mute \n\
/o \n\
/oldcar");
ShowPlayerDialog(playerid,DIALOG_Adminhelp_Ad_Lvl_1_1,DIALOG_STYLE_LIST,"Adminhelp Admin Stufe 1 A-O",string2,"OK"," ") ;// DIALOG_Adminhelp_Supporter_Level_1 sind mehr als 32 Zeichen -> geht nicht
}
case 1:
{
new string2[1024];
format(string2,sizeof string2," /prison [Für Cheater] \n\
/recon \n\
/respawnthiscar(/rtc) \n\
/sban \n\
/sellsbiz \n\
/setarmor \n\
/setchamp \n\
/setfamily \n\
/sethp \n\
/setint \n\
/setteam \n\
/spawn \n\
/umbenennen \n\
/unfreeze \n\
/unprison \n\
/veh \n\
/warn \n\
/wisper(/w)");
ShowPlayerDialog(playerid,DIALOG_Adminhelp_Ad_Lvl_1_2,DIALOG_STYLE_LIST,"Adminhelp Admin Stufe 1 P-Z",string2,"OK"," ") ;// DIALOG_Adminhelp_Supporter_Level_1 sind mehr als 32 Zeichen -> geht nicht
}
}
}
Gruss: Sonic