[Ajuda] erro dialog neon !
#1

Код:
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(811) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(826) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(969) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(970) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(983) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(984) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(997) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(998) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1020) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1021) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1044) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1045) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1057) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1058) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1080) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1081) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1103) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1104) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1126) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1127) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1149) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1150) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1172) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1173) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1194) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1195) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1207) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1208) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1219) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1220) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1231) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1232) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1270) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1271) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1432) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1433) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1444) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1445) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1455) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1456) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1490) : warning 219: local variable "pname" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(1491) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2121) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2123) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2125) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2132) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2134) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2136) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2140) : error 021: symbol already defined: "GetPlayerName"
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2154) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2156) : error 021: symbol already defined: "string"
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2157) : error 021: symbol already defined: "pname"
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2167) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2171) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2173) : warning 203: symbol is never used: "pname"
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GamingFoxBrasil.pwn(2173) : warning 203: symbol is never used: "string"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


12 Errors.
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
 if(
dialogid == 8899)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
            
//blue
            
SetPVarInt(playerid"Status"1);
            
SetPVarInt(playerid"neon"CreateObject(18648,0,0,0,0,0,0));
            
SetPVarInt(playerid"neon1"CreateObject(18648,0,0,0,0,0,0));
            
AttachObjectToVehicle(GetPVarInt(playerid"neon"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
            
AttachObjectToVehicle(GetPVarInt(playerid"neon1"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                }
            if(
listitem == 1)
            {
             
//red
                
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"neon2"CreateObject(18647,0,0,0,0,0,0));
                
SetPVarInt(playerid"neon3"CreateObject(18647,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"neon2"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"neon3"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
}
            if(
listitem == 2)
            {
            
//green
                  
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"neon4"CreateObject(18649,0,0,0,0,0,0));
                
SetPVarInt(playerid"neon5"CreateObject(18649,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"neon4"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"neon5"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                
SendClientMessage(playerid0xFFFFFFAA"neon installed");
                }
            if(
listitem == 3)
            {
            
//white
                  
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"neon6"CreateObject(18652,0,0,0,0,0,0));
                
SetPVarInt(playerid"neon7"CreateObject(18652,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"neon6"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"neon7"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
}
            if(
listitem == 4)
            {
            
//pink
                  
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"neon8"CreateObject(18651,0,0,0,0,0,0));
                
SetPVarInt(playerid"neon9"CreateObject(18651,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"neon8"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"neon9"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
}
            if(
listitem == 5)
            {
            
//yellow
                   
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"neon10"CreateObject(18650,0,0,0,0,0,0));
                
SetPVarInt(playerid"neon11"CreateObject(18650,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"neon10"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"neon11"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
}
            if(
listitem == 6)
            {
            
//police
                   
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"neon12"CreateObject(18646,0,0,0,0,0,0));
                
SetPVarInt(playerid"neon13"CreateObject(18646,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"neon12"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"neon13"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0);
                }
                   if(
listitem == 7)
                {
                
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"interior"CreateObject(18646,0,0,0,0,0,0));
                
SetPVarInt(playerid"interior1"CreateObject(18646,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"interior"), GetPlayerVehicleID(playerid), 0, -0.002.02.03.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"interior1"), GetPlayerVehicleID(playerid), 0, -0.002.02.03.0);
                }
              if(
listitem == 8)
            {
            
//back
                
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"back"CreateObject(18646,0,0,0,0,0,0));
                
SetPVarInt(playerid"back1"CreateObject(18646,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"back"), GetPlayerVehicleID(playerid), -0.0, -1.5, -12.02.03.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"back1"), GetPlayerVehicleID(playerid), -0.0, -1.5, -12.02.03.0);
                }
                if(
listitem == 9)
                {
                
//front
                
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"front"CreateObject(18646,0,0,0,0,0,0));
                
SetPVarInt(playerid"front1"CreateObject(18646,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"front"), GetPlayerVehicleID(playerid), -0.01.5, -0.62.02.03.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"front1"), GetPlayerVehicleID(playerid), -0.01.5, -0.62.02.03.0);
                }
                if(
listitem == 10)
                {
                
//undercover
                
SetPVarInt(playerid"Status"1);
                
SetPVarInt(playerid"undercover"CreateObject(18646,0,0,0,0,0,0));
                
SetPVarInt(playerid"undercover1"CreateObject(18646,0,0,0,0,0,0));
                
AttachObjectToVehicle(GetPVarInt(playerid"undercover"), GetPlayerVehicleID(playerid), -0.5, -0.20.82.02.03.0);
                
AttachObjectToVehicle(GetPVarInt(playerid"undercover1"), GetPlayerVehicleID(playerid), -0.5, -0.20.82.02.03.0);
                }
            if(
listitem == 11)
            {
            
//remove neon
            
DestroyObject(GetPVarInt(playerid"neon"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon1"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon2"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon3"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon4"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon5"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon6"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon7"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon8"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon9"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon10"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon11"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon12"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"neon13"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"interior"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"interior1"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"back"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"back1"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"front"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"front1"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"undercover"));
            
DeletePVar(playerid"Status");
            
DestroyObject(GetPVarInt(playerid"undercover1"));
            
DeletePVar(playerid"Status");
               }
         }
         }
             return 
0;} 
me ajudem ai , oque esta errado ? :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)