[Ajuda] 1 Warning. pawno "GRANA"
#1

Код HTML:
C:\Users\Nilda\Documents\GM Brasil Vida Nova ™\gamemodes\BVN.pwn(27736) : warning 204: symbol is assigned a value that is never used: "Grana"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          10012 bytes
Code size:          1301656 bytes
Data size:          4079936 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 5407988 bytes

1 Warning.
Код HTML:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
	new Grana = GetPlayerGrana(playerid);

	if(pickupid == PickupsFix[1])
	{
		SetPlayerPos(playerid, 324.6059, 304.3401, 999.1484);
		SetPlayerInterior(playerid, 5);
	}
	if(pickupid == PickupsFix[0])
	{
		SetPlayerPos(playerid, -212.6779, 979.6142, 19.3291);
		SetPlayerInterior(playerid, 0);
	}
	if(pickupid == PickupsFix[55])
	{
		if(nobanco[playerid] == 1)
		{
			SetPlayerPos(playerid, 1413.7911, -1701.3040, 13.5394);
			SetPlayerInterior(playerid, 0);
			nobanco[playerid] = 0;
		}
ETC....
Ajuda ae esse Warning nгo saii de geito nenhum , comeзo ah dб erro dps quк eu tirei os Pickups de armas nas areas DM :/
Reply
#2

O aviso acima significa que a variavel nгo esta sendo utilizada sу remove-la!

Variavel: new Grana = GetPlayerGrana(playerid);
Reply
#3

Jб tenteii remover pra tirar erro .. mais nгo dб em nadв ..
Reply
#4

Oque acontece dai?
Reply
#5

Код HTML:
C:\Users\Nilda\Documents\GM Brasil Vida Nova ™\gamemodes\BVN.pwn(27736) : warning 219: local variable "GetPlayerGrana" shadows a variable at a preceding level
C:\Users\Nilda\Documents\GM Brasil Vida Nova ™\gamemodes\BVN.pwn(27736) : error 001: expected token: ";", but found "("
C:\Users\Nilda\Documents\GM Brasil Vida Nova ™\gamemodes\BVN.pwn(27736) : warning 215: expression has no effect
C:\Users\Nilda\Documents\GM Brasil Vida Nova ™\gamemodes\BVN.pwn(27736) : warning 203: symbol is never used: "GetPlayerGrana"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

new Grana = GetPlayerMoney(playerid);
Reply
#7

Erro eh na "GRANA" ..
Reply
#8

mostra a linha entao
Reply
#9

Код HTML:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
	new Grana = GetPlayerGrana(playerid);

	if(pickupid == PickupsFix[1])
	{
		SetPlayerPos(playerid, 324.6059, 304.3401, 999.1484);
		SetPlayerInterior(playerid, 5);
	}
	if(pickupid == PickupsFix[0])
	{
		SetPlayerPos(playerid, -212.6779, 979.6142, 19.3291);
		SetPlayerInterior(playerid, 0);
	}
	if(pickupid == PickupsFix[55])
	{
		if(nobanco[playerid] == 1)
		{
			SetPlayerPos(playerid, 1413.7911, -1701.3040, 13.5394);
			SetPlayerInterior(playerid, 0);
			nobanco[playerid] = 0;
		}
		if(nobanco[playerid] == 2)
		{
			SetPlayerPos(playerid, 1153.9411, -1769.8316, 16.5937);
			SetPlayerInterior(playerid, 0);
			nobanco[playerid] = 0;
		}
		if(nobanco[playerid] == 3)
		{
			SetPlayerPos(playerid, -1882.9195, 824.4190, 35.1747);
			SetPlayerInterior(playerid, 0);
			nobanco[playerid] = 0;
		}
		if(nobanco[playerid] == 4)
		{
			SetPlayerPos(playerid, -2650.8605, 376.0171, 6.1095);
			SetPlayerInterior(playerid, 0);
			nobanco[playerid] = 0;
		}
		if(nobanco[playerid] == 5)
		{
			SetPlayerPos(playerid, 1933.2949, 1345.2982, 9.9687);
			SetPlayerInterior(playerid, 0);
			nobanco[playerid] = 0;
		}
		if(nobanco[playerid] == 6)
		{
			SetPlayerPos(playerid, 2180.2832, 2294.2443, 10.8203);
			SetPlayerInterior(playerid, 0);
			nobanco[playerid] = 0;
		}
	}
	if(pickupid == PickupsFix[3])
	{
		SetPlayerPos(playerid, 1351.3582,-1756.5243,13.5078);
		SetPlayerInterior(playerid, 0);
	}
	if(pickupid == PickupsFix[2])
	{
		SetPlayerPos(playerid, -33.5122, -89.9078, 1003.5469);
		SetPlayerInterior(playerid, 18);
	}
	if(pickupid == PickupsFix[4])
	{
		SetPlayerPos(playerid, 513.8825,-11.2699,1001.5653);
		SetPlayerInterior(playerid, 3);
	}
	if(pickupid == PickupsFix[5])
	{
		SetPlayerPos(playerid, 2154.8842,-1071.1025,39.2741);
		SetPlayerInterior(playerid, 0);
	}
	if(pickupid == PickupsFix[8])
	{
		SetPlayerPos(playerid, 224.0249, -8.5593, 1002.2109);
		SetPlayerInterior(playerid, 5);
	}
	if(pickupid == PickupsFix[11])
	{
		SetPlayerPos(playerid, 2022.4974, 1007.9083, 10.8203);
		SetPlayerInterior(playerid, 0);
	}
	if(pickupid == PickupsFix[10])
	{
		SetPlayerPos(playerid, 2016.2699, 1017.7790, 996.8750);
		SetPlayerInterior(playerid, 10);
	}
	if(pickupid == PickupsFix[49])
	{
		SetPlayerPos(playerid, 830.5774, 7.3999, 1004.1796);
		SetPlayerInterior(playerid, 3);
		nobanco[playerid] = 1;
	}
	if(pickupid == PickupsFix[50])
	{
		SetPlayerPos(playerid, 830.5774, 7.3999, 1004.1796);
		SetPlayerInterior(playerid, 3);
		nobanco[playerid] = 2;
	}
	if(pickupid == PickupsFix[51])
	{
		SetPlayerPos(playerid, 830.5774, 7.3999, 1004.1796);
		SetPlayerInterior(playerid, 3);
		nobanco[playerid] = 3;
	}
	if(pickupid == PickupsFix[52])
	{
		SetPlayerPos(playerid, 830.5774, 7.3999, 1004.1796);
		SetPlayerInterior(playerid, 3);
		nobanco[playerid] = 4;
	}
	if(pickupid == PickupsFix[53])
	{
		SetPlayerPos(playerid, 830.5774, 7.3999, 1004.1796);
		SetPlayerInterior(playerid, 3);
		nobanco[playerid] = 5;
	}
	if(pickupid == PickupsFix[54])
	{
		SetPlayerPos(playerid, 830.5774, 7.3999, 1004.1796);
		SetPlayerInterior(playerid, 3);
		nobanco[playerid] = 6;
	}
	if(pickupid == PickupsFix[14])
	{
		SetPlayerPos(playerid, 771.9539, -1.7038, 1000.7278);
		SetPlayerInterior(playerid, 5);
	}
	if(pickupid == PickupsFix[15])
	{
		SetPlayerPos(playerid, -146.3821, 1078.9905, 20.3192);
		SetPlayerInterior(playerid, 0);
	}
ETC....
Reply
#10

pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
    if(pickupid == PickupsFix[1])
    {
        SetPlayerPos(playerid, 324.6059, 304.3401, 999.1484);
        SetPlayerInterior(playerid, 5);
    }
    if(pickupid == PickupsFix[0])
    {
        SetPlayerPos(playerid, -212.6779, 979.6142, 19.3291);
        SetPlayerInterior(playerid, 0);
    }
    if(pickupid == PickupsFix[55])
    {
        if(nobanco[playerid] == 1)
        {
            SetPlayerPos(playerid, 1413.7911, -1701.3040, 13.5394);
            SetPlayerInterior(playerid, 0);
            nobanco[playerid] = 0;
        }
        if(nobanco[playerid] == 2)
        {
            SetPlayerPos(playerid, 1153.9411, -1769.8316, 16.5937);
            SetPlayerInterior(playerid, 0);
            nobanco[playerid] = 0;
        }
        if(nobanco[playerid] == 3)
        {
            SetPlayerPos(playerid, -1882.9195, 824.4190, 35.1747);
            SetPlayerInterior(playerid, 0);
            nobanco[playerid] = 0;
        }
        if(nobanco[playerid] == 4)
        {
            SetPlayerPos(playerid, -2650.8605, 376.0171, 6.1095);
            SetPlayerInterior(playerid, 0);
            nobanco[playerid] = 0;
        }
        if(nobanco[playerid] == 5)
        {
            SetPlayerPos(playerid, 1933.2949, 1345.2982, 9.9687);
            SetPlayerInterior(playerid, 0);
            nobanco[playerid] = 0;
        }
        if(nobanco[playerid] == 6)
        {
            SetPlayerPos(playerid, 2180.2832, 2294.2443, 10.8203);
            SetPlayerInterior(playerid, 0);
            nobanco[playerid] = 0;
        }
    }
    if(pickupid == PickupsFix[3])
    {
        SetPlayerPos(playerid, 1351.3582,-1756.5243,13.5078);
        SetPlayerInterior(playerid, 0);
    }
    if(pickupid == PickupsFix[2])
    {
        SetPlayerPos(playerid, -33.5122, -89.9078, 1003.5469);
        SetPlayerInterior(playerid, 18);
    }
    if(pickupid == PickupsFix[4])
    {
        SetPlayerPos(playerid, 513.8825,-11.2699,1001.5653);
        SetPlayerInterior(playerid, 3);
    }
    if(pickupid == PickupsFix[5])
    {
        SetPlayerPos(playerid, 2154.8842,-1071.1025,39.2741);
        SetPlayerInterior(playerid, 0);
    }
    if(pickupid == PickupsFix[8])
    {
        SetPlayerPos(playerid, 224.0249, -8.5593, 1002.2109);
        SetPlayerInterior(playerid, 5);
    }
    if(pickupid == PickupsFix[11])
    {
        SetPlayerPos(playerid, 2022.4974, 1007.9083, 10.8203);
        SetPlayerInterior(playerid, 0);
    }
    if(pickupid == PickupsFix[10])
    {
        SetPlayerPos(playerid, 2016.2699, 1017.7790, 996.8750);
        SetPlayerInterior(playerid, 10);
    }
    if(pickupid == PickupsFix[49])
    {
        SetPlayerPos(playerid, 830.5774, 7.3999, 1004.1796);
        SetPlayerInterior(playerid, 3);
        nobanco[playerid] = 1;
    }
    if(pickupid == PickupsFix[50])
    {
        SetPlayerPos(playerid, 830.5774, 7.3999, 1004.1796);
        SetPlayerInterior(playerid, 3);
        nobanco[playerid] = 2;
    }
    if(pickupid == PickupsFix[51])
    {
        SetPlayerPos(playerid, 830.5774, 7.3999, 1004.1796);
        SetPlayerInterior(playerid, 3);
        nobanco[playerid] = 3;
    }
    if(pickupid == PickupsFix[52])
    {
        SetPlayerPos(playerid, 830.5774, 7.3999, 1004.1796);
        SetPlayerInterior(playerid, 3);
        nobanco[playerid] = 4;
    }
    if(pickupid == PickupsFix[53])
    {
        SetPlayerPos(playerid, 830.5774, 7.3999, 1004.1796);
        SetPlayerInterior(playerid, 3);
        nobanco[playerid] = 5;
    }
    if(pickupid == PickupsFix[54])
    {
        SetPlayerPos(playerid, 830.5774, 7.3999, 1004.1796);
        SetPlayerInterior(playerid, 3);
        nobanco[playerid] = 6;
    }
    if(pickupid == PickupsFix[14])
    {
        SetPlayerPos(playerid, 771.9539, -1.7038, 1000.7278);
        SetPlayerInterior(playerid, 5);
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)