Skin changeCommand works but doesnt change skin
#1

Skinchange command not working
Im trying to start zcmd, so i did everything but i have 1 warning
Code:
warning 225: unreachable code
Line 11,
Code:
if (dialogid == 1)
. everytime i try it it work but not changing my skin
PHP Code:
#include <a_samp>
#include <a_players>
#include <zcmd>
#pragma tabsize 0
CMD:skin(playeridlistitemresponsedialogidinputtext[])
        {
         
ShowPlayerDialog(playerid1DIALOG_STYLE_INPUT"Skin Change""Enter the skin id you wish to have below""Confirm""Cancel");
                return 
1;
        if (
dialogid == 1)
        {
            if(
response)
                {
                    new 
skinidmessage[64];
                        
skinid strval(inputtext);
                        if(
skinid || skinid 299)
                        {
                            
SendClientMessage(playerid0xFFFFFFFF"SERVER: Skin id may be between 0 and 299.");
                        }
                        else
                        {
                            
SetPlayerSkin(playeridskinid);
                            
format(messagesizeof(message), "SERVER: You have changed your skin id to %d."skinid);
                            
SendClientMessage(playerid0xFFFFFFFFmessage);
                    }
                }
        }
            return 
1;

Reply


Messages In This Thread
Skin changeCommand works but doesnt change skin - by SkillNasr - 27.06.2016, 19:01
Re: Skin changeCommand works but doesnt change skin - by Stinged - 27.06.2016, 19:04
Re: Skin changeCommand works but doesnt change skin - by Luicy. - 27.06.2016, 19:04
Re: Skin changeCommand works but doesnt change skin - by SkillNasr - 27.06.2016, 19:14
Re: Skin changeCommand works but doesnt change skin - by SkillNasr - 27.06.2016, 19:16

Forum Jump:


Users browsing this thread: 2 Guest(s)