Help me ! -
Devilxz97 - 14.05.2012
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 ??
Re: Help me ! -
Stigg - 14.05.2012
Just use the variable 'skins' somewhere in your script.
Re: Help me ! -
Neo Karls - 14.05.2012
Can you show us those lines
Re: Help me ! -
Ballu Miaa - 14.05.2012
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
Re: Help me ! -
Devilxz97 - 14.05.2012
Код:
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};
Re: Help me ! -
Ballu Miaa - 14.05.2012
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.
Re: Help me ! -
jaami - 14.05.2012
does it come with a command??
Re: Help me ! -
Ballu Miaa - 14.05.2012
Quote:
Originally Posted by jaami
does it come with a command??
|
Stop confusing newbies and posting useless questions please. Thank you.
Re: Help me ! -
Devilxz97 - 14.05.2012
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;
}
Re: Help me ! -
Ballu Miaa - 14.05.2012
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;
}
Re: Help me ! -
Mandrakke - 14.05.2012
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!
Re: Help me ! -
Devilxz97 - 16.05.2012
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++