why is this messing with...
#1

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.
why is it messing with the other dialog?, if i just comment that and compile its compiling good..
Reply
#2

you have this:
pawn Code:
new s[32],q[128],ss[128]; //and all other that are mentioned in errors
allready somewhere in script
Reply
#3

Code:
	if(dialogid == 31)
	{
	    if(response)
	    {
			new s[128];
			format(s,128,"%s",inputtext);
			SendClientMessage(playerid,0xFFFFFFFF,s);
	    }
 	}
this is the next dialog where i get errors. and i only put the new thing inside the cases which is somehow affecting the other dialogs
Reply
#4

well i took out the new line for them and i got undefined symbol q; then i put new q[128] and then i only got 4 errors that are undefined symbol mem. but when i put new mem[10][32] i get the error i used to get in the begining.. any idea why?
Reply
#5

Code:
	if(dialogid == 30)
	{
	    if(response)
	    {
	        switch(listitem)
        	{
	        	case 0:
        		{
	        		new q[128],s[32],ss[128],m;
	        		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[m],32,"%s",field[1]);
	        		    m++;
	        		}*/
	        		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,"");
				}
	        }
	    }
	}
i did it and only get two warnings :S
Reply
#6

cmon guysssssss
Reply
#7

show us the warnings
Reply
#8

What are the two warnings?
Reply
#9

Code:
C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(1750) : warning 203: symbol is never used: "m"
C:\Users\likith\Desktop\3c srvr\gamemodes\EeshRP.pwn(1750) : warning 204: symbol is assigned a value that is never used: "ss"
theyre cming because i cmted out the code in the dialog...
Reply
#10

Ignore them or delete
new m;
new ss;
Reply
#11

uhh... i already told thats no prob please sole my actuall proble -.-
Reply
#12

bump
Reply
#13

dump
Reply
#14

tell us what's the prob.
Reply
#15

omg read the friggin 1st post and read the rest of the replies too O\O
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)