warning 203 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning 203 (
/showthread.php?tid=631865)
warning 203 -
crukk11 - 06.04.2017
Quote:
C:\Users\cyber\Desktop\gta server cc bukit\gamemodes\GL.pwn(3885) : warning 203: symbol is never used: "Skin"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
|
i use two include
https://sampforum.blast.hk/showthread.php?tid=570213
https://sampforum.blast.hk/showthread.php?tid=602886
i combine all script and i get this warning
error code
PHP код:
Dialog:Skin(playerid, response, listitem, inputtext[])
{
if (dialogid == 0)
{
if (response)
SetPlayerSkin(playerid, SKINS[listitem]); // SKINS[listitem]- returns you the skin id from the index we input as "listitemid"
}
return 1;
}
Re: warning 203 -
NaS - 06.04.2017
It's not an error, it's a warning.
That means the dialog function (which Dialog:Skin will resolve to) is not used.
Meaning you never used Dialog_Show on this dialog.
If this is on purpose you can comment it out or leave it like that until you do, if not check the portion of code where it should do that for typos or something.
Re: warning 203 -
crukk11 - 06.04.2017
where to put dialog_show
Re: warning 203 -
crukk11 - 08.04.2017
help
Re: warning 203 -
Sew_Sumi - 08.04.2017
He told you how to fix it, and it's a warning, it doesn't stop the gamemode from compiling.
Re: warning 203 -
crukk11 - 08.04.2017
so how to lose this warning
Re: warning 203 -
Sew_Sumi - 08.04.2017
Quote:
Originally Posted by NaS
That means the dialog function (which Dialog:Skin will resolve to) is not used.
Meaning you never used Dialog_Show on this dialog.
If this is on purpose you can comment it out or leave it like that until you do, if not check the portion of code where it should do that for typos or something.
|
This...
Re: warning 203 -
crukk11 - 08.04.2017
ok it work
because i forgot to add include to my script
Re: warning 203 -
crukk11 - 08.04.2017
ok last thing how to this error
PHP код:
C:\Users\cyber\Desktop\gta server cc bukit\gamemodes\GL.pwn(4016) : error 048: array dimensions do not match
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
this the error code
PHP код:
CMD:skins(playerid)
{
static array[1][1];
Dialog_Show(playerid, 0, DIALOG_STYLE_PREVMODEL_LIST, "Skin selection dialog", SKINS, array, "Select", "Cancel");
return 1;
}
Re: warning 203 -
coool - 08.04.2017
PHP код:
CMD:skins(playerid)
{
static array[1][1];
Dialog_Show(playerid, 0, DIALOG_STYLE_PREVMODEL_LIST, "Skin selection dialog", SKINS, array, "Select", "Cancel");
return 1;
}
[/QUOTE]
I don't know what you want to do. But you have to assign index to that array i.e:
PHP код:
array -> array[1][1] //or whatever you want.