warning 203
#1

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(playeridresponselistiteminputtext[])
{
    if (
dialogid == 0)
    {
        if (
response)
            
SetPlayerSkin(playeridSKINS[listitem]); // SKINS[listitem]- returns you the skin id from the index we input as "listitemid"
    
}
    return 
1;

Reply
#2

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.
Reply
#3

where to put dialog_show
Reply
#4

help
Reply
#5

He told you how to fix it, and it's a warning, it doesn't stop the gamemode from compiling.
Reply
#6

so how to lose this warning
Reply
#7

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...
Reply
#8

ok it work

because i forgot to add include to my script
Reply
#9

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 
(c1997-2006ITB CompuPhase
1 Error

this the error code

PHP код:
CMD:skins(playerid)
{
    static array[
1][1];
    
Dialog_Show(playerid0DIALOG_STYLE_PREVMODEL_LIST"Skin selection dialog"SKINS, array, "Select""Cancel");
    return 
1;

Reply
#10

PHP код:
CMD:skins(playerid)
{
    static array[
1][1];
    
Dialog_Show(playerid0DIALOG_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. 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)