Help me !
#1

Im Making a new Filterscript than now when im compile it i got 3 warning and it like this

Код:
C:\Users\user\Desktop\Evil DriftingZ [V0.3E]\filterscripts\SkinChanging.pwn(58) : warning 204: symbol is assigned a value that is never used: "skins"
C:\Users\user\Desktop\Evil DriftingZ [V0.3E]\filterscripts\SkinChanging.pwn(62) : warning 204: symbol is assigned a value that is never used: "skins"
C:\Users\user\Desktop\Evil DriftingZ [V0.3E]\filterscripts\SkinChanging.pwn(66) : warning 204: symbol is assigned a value that is never used: "skins"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
i add this on the top of my script
new skins;

but doesn't works to :\ how can i fix this ??
Reply
#2

Just use the variable 'skins' somewhere in your script.
Reply
#3

Can you show us those lines
Reply
#4

You have added new skins; 3 times in the script as well as this warning means that you have never used this symbol "skins" anywhere inside the game mode. To remove , CTRL + F in your game mode. Then type "new skins;" find it and delete it. Press F3 find another and delete it too. Then the third one. There will be no warning afterwards.

Or

You can CTRL + G in your game mode. Look for the lines "58" Then "62" Then 66". Delete all these lines and youre done. I hope it helps.


Peace
BMiaa
Reply
#5

Код:
			case 1447:
			{
				new skins[] = {165,166,280,281,282,283,288,284,285,286,287};
			}
			case 1448:
			{
				new skins[] = {274,275,276};
			}
			case 1449:
			{
				new skins[] = {277,278,279};
Reply
#6

Quote:
Originally Posted by Devilxz97
Посмотреть сообщение
Код:
			case 1447:
			{
				new skins[] = {165,166,280,281,282,283,288,284,285,286,287};
			}
			case 1448:
			{
				new skins[] = {274,275,276};
			}
			case 1449:
			{
				new skins[] = {277,278,279};
Which callback is this? OnPlayerRequestClass? Paste the whole callback.
Reply
#7

does it come with a command??
Reply
#8

Quote:
Originally Posted by jaami
Посмотреть сообщение
does it come with a command??
Stop confusing newbies and posting useless questions please. Thank you.
Reply
#9

oh my bad sec :\

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(response == 1)
	{
	    switch(dialogid)
	    {
	        case 1446:
	    	{
	    	    switch(listitem)
	    	    {
					case 0: ShowPlayerDialog(playerid, 1447, DIALOG_STYLE_LIST, "Law Enforcement Skin List", "Agent1\nAgent2\nPolice1\nPolice2\nPolice3\nSheriff1\nSheriff2\nPoliceBiker\nSwat\nFBI\nArmy", "Choose", "Close");
					case 1: ShowPlayerDialog(playerid, 1448, DIALOG_STYLE_LIST, "Paramedic Skin List", "Paramedic1\nParamedic2\nParamedic3", "Choose", "Close");
					case 2:	ShowPlayerDialog(playerid, 1449, DIALOG_STYLE_LIST, "Fireman Skin List", "Firefighter1\nFirefighter2\nFirefighter3", "Choose", "Close");
				}
			}
			case 1447:
			{
				new skins[] = {165,166,280,281,282,283,288,284,285,286,287};
			}
			case 1448:
			{
				new skins[] = {274,275,276};
			}
			case 1449:
			{
				new skins[] = {277,278,279};
			}
		}
	}
	return 1;
}
Reply
#10

Try this first. if this doesnt work.:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response == 1)
    {
        switch(dialogid)
        {
            case 1446:
            {
                switch(listitem)
                {
            case 0: return ShowPlayerDialog(playerid, 1447, DIALOG_STYLE_LIST, "Law Enforcement Skin List", "Agent1\nAgent2\nPolice1\nPolice2\nPolice3\nSheriff1\nSheriff2\nPoliceBiker\nSwat\nFBI\nArmy", "Choose", "Close");
            case 1: return ShowPlayerDialog(playerid, 1448, DIALOG_STYLE_LIST, "Paramedic Skin List", "Paramedic1\nParamedic2\nParamedic3", "Choose", "Close");
            case 2: return ShowPlayerDialog(playerid, 1449, DIALOG_STYLE_LIST, "Fireman Skin List", "Firefighter1\nFirefighter2\nFirefighter3", "Choose", "Close");
            case 1447:
            {
                new skins[] = {165,166,280,281,282,283,288,284,285,286,287};
            }
            case 1448:
            {
                new skins[] = {274,275,276};
            }
            case 1449:
            {
                new skins[] = {277,278,279};
            }
                    }
        }
            }
    }
    return 1;
}
Then try this code

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response == 1)
    {
        switch(dialogid)
        {
            case 1446:
            {
                switch(listitem)
                {
               
                    case 0: return ShowPlayerDialog(playerid, 1447, DIALOG_STYLE_LIST, "Law Enforcement Skin List", "Agent1\nAgent2\nPolice1\nPolice2\nPolice3\nSheriff1\nSheriff2\nPoliceBiker\nSwat\nFBI\nArmy", "Choose", "Close");
                    case 1: return ShowPlayerDialog(playerid, 1448, DIALOG_STYLE_LIST, "Paramedic Skin List", "Paramedic1\nParamedic2\nParamedic3", "Choose", "Close");
                    case 2: return ShowPlayerDialog(playerid, 1449, DIALOG_STYLE_LIST, "Fireman Skin List", "Firefighter1\nFirefighter2\nFirefighter3", "Choose", "Close");
                }

            }
        }
    }
    return 1;
}
Reply
#11

I think that is impossible to OnDialogResponse return such a large listitem value like 1449, to return a number like that the dialog have to show 1449 rows!
Reply
#12

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
Try this first. if this doesnt work.:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response == 1)
    {
        switch(dialogid)
        {
            case 1446:
            {
                switch(listitem)
                {
            case 0: return ShowPlayerDialog(playerid, 1447, DIALOG_STYLE_LIST, "Law Enforcement Skin List", "Agent1\nAgent2\nPolice1\nPolice2\nPolice3\nSheriff1\nSheriff2\nPoliceBiker\nSwat\nFBI\nArmy", "Choose", "Close");
            case 1: return ShowPlayerDialog(playerid, 1448, DIALOG_STYLE_LIST, "Paramedic Skin List", "Paramedic1\nParamedic2\nParamedic3", "Choose", "Close");
            case 2: return ShowPlayerDialog(playerid, 1449, DIALOG_STYLE_LIST, "Fireman Skin List", "Firefighter1\nFirefighter2\nFirefighter3", "Choose", "Close");
            case 1447:
            {
                new skins[] = {165,166,280,281,282,283,288,284,285,286,287};
            }
            case 1448:
            {
                new skins[] = {274,275,276};
            }
            case 1449:
            {
                new skins[] = {277,278,279};
            }
                    }
        }
            }
    }
    return 1;
}
Then try this code

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response == 1)
    {
        switch(dialogid)
        {
            case 1446:
            {
                switch(listitem)
                {
               
                    case 0: return ShowPlayerDialog(playerid, 1447, DIALOG_STYLE_LIST, "Law Enforcement Skin List", "Agent1\nAgent2\nPolice1\nPolice2\nPolice3\nSheriff1\nSheriff2\nPoliceBiker\nSwat\nFBI\nArmy", "Choose", "Close");
                    case 1: return ShowPlayerDialog(playerid, 1448, DIALOG_STYLE_LIST, "Paramedic Skin List", "Paramedic1\nParamedic2\nParamedic3", "Choose", "Close");
                    case 2: return ShowPlayerDialog(playerid, 1449, DIALOG_STYLE_LIST, "Fireman Skin List", "Firefighter1\nFirefighter2\nFirefighter3", "Choose", "Close");
                }

            }
        }
    }
    return 1;
}
anyway thanks for that Ballu , but i already fixed it
but thanks for your help okay for u REP++
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)