02.04.2011, 11:47
Code:
if(dialogid == 30) { if(response) { switch(listitem) { case 0: { new s[32],q[128],ss[128],mem[10][32]; format(q,128,"SELECT * FROM omem WHERE org=%d",org[playerid]); mysql_query(q); mysql_store_result(); for(new i=mysql_retrieve_row();i<10;i++) { new field[5][32]; mysql_fetch_row_format(q,"|"); explode(q,field,"|"); format(mem[i],32,"%s",field[1]); } mysql_free_result(); format(s,32,"%s:",oname[playerid]); format(ss,128,"%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",mem[0],mem[1],mem[2],mem[3],mem[4],mem[5],mem[6],mem[7],mem[8],mem[9]); ShowPlayerDialog(playerid,31,DIALOG_STYLE_LIST,s,ss,"Ok","Cancel"); } case 1: { cmd_resign(playerid,""); } } } }
Code:
C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(1783) : warning 219: local variable "s" shadows a variable at a preceding level C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(1872) : error 021: symbol already defined: "q" C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(1876) : error 021: symbol already defined: "s" C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(1895) : error 021: symbol already defined: "s" C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(1897) : error 021: symbol already defined: "i" C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(1936) : error 021: symbol already defined: "q" C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(1951) : warning 219: local variable "q" shadows a variable at a preceding level C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(1999) : warning 219: local variable "s" shadows a variable at a preceding level C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(2003) : warning 219: local variable "i" shadows a variable at a preceding level C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(2021) : warning 219: local variable "q" shadows a variable at a preceding level C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(2026) : warning 219: local variable "i" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.