OMG what the hell is this?! -
Audiophr3ak - 26.06.2012
I just opened my script today (no changes from the last working version) and got those warning messages. What the heck?
C:\Archive\Soft\Games\GTA SA\SA-MP\Projects\VCRL\pawno\include\a_angles.inc(13) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Archive\Soft\Games\GTA SA\SA-MP\Projects\VCRL\pawno\include\a_angles.inc(31) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Archive\Soft\Games\GTA SA\SA-MP\Projects\VCRL\pawno\include\a_angles.inc(61) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Archive\Soft\Games\GTA SA\SA-MP\Projects\VCRL\pawno\include\sscanf.inc(101) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Archive\Soft\Games\GTA SA\SA-MP\Projects\VCRL\gamemodes\vcrl.pwn(1751) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Archive\Soft\Games\GTA SA\SA-MP\Projects\VCRL\gamemodes\vcrl.pwn(1771) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Archive\Soft\Games\GTA SA\SA-MP\Projects\VCRL\gamemodes\vcrl.pwn(1779) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Archive\Soft\Games\GTA SA\SA-MP\Projects\VCRL\gamemodes\vcrl.pwn(1781) : warning 219: local variable "msg" shadows a variable at a preceding level
Re: OMG what the hell is this?! -
Smokkr - 26.06.2012
Post warning/error lines!
Re: OMG what the hell is this?! -
Audiophr3ak - 26.06.2012
Everything was working fine before, no any warning or error. Also it started to warn me about pawno includes!
Here is one example code:
pawn Код:
stock CheckPlayerVehicleKey(playerid, vehicleid)
{
switch(vInfo[vehicleid][vSlot])
{
case -2://Mission Vehicle
{
if(Mission[playerid][0] != strval(vInfo[vehicleid][vOwner])) return false;
}
case -1://Faction Vehicle
{
if(aInfo[playerid][Team] != strval(vInfo[vehicleid][vOwner])) return false;
if(aInfo[playerid][Status] < 5) return false;
}
case 0,1,2://Private Vehicle
{
new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name, vInfo[vehicleid][vOwner])) return false;
}
}
return true;
}
Re: OMG what the hell is this?! -
Jason` - 26.06.2012
You have created local variables in a place where variables have been created with the same name.
Please use the tags [ PAWN ] & [ /PAWN ] (Remove the spaces)
Re: OMG what the hell is this?! -
Skaizo - 26.06.2012
you have created local variables,put other name
pawn Код:
new name2[MAX_PLAYER_NAME]; GetPlayerName(playerid, name2, sizeof(name2));
if(strcmp(name2, vInfo[vehicleid][vOwner])) return false;
Re: OMG what the hell is this?! -
Audiophr3ak - 26.06.2012
i removed ALL custom stock functions and im still getting warnings about a_angles.inc and sscanf.inc This is not the code problem i think. BTW i dont have anti-virus XD
Re: OMG what the hell is this?! -
Audiophr3ak - 26.06.2012
SOLVED. The reason was one randomly deleted "{" somewhere in the code, sorry for bothering you guys and thanks everyone :P