[SAVESKIN] Saving Skins
#9

Quote:
Originally Posted by JeaSon
Посмотреть сообщение
simple just add this line
PHP код:
PlayerInfo[targetid][pSkinID] = skinid
under
PHP код:
 SendClientMessage(playeridCOLOR_WHITE,"~~~~~~~~~~~~~~~~~~~"); 
here your command

PHP код:
CMD:setskin(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= 1)
    {
        new
          
targetid,
          
skinid;
        if (!
sscanf(params"ii"targetidskinid))
        {
          if (
targetid != INVALID_PLAYER_ID)
          {
          
            new
              
message[256];
            
SetPlayerSkin(targetidskinid);
               
SendClientMessage(playeridCOLOR_WHITE"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
            
format(messagesizeof(message), "Your skin ID was set to '%d' by an Admin!"skinid);
            
SendClientMessage(targetidCOLOR_ORANGEmessage);
              
SendClientMessage(playeridCOLOR_WHITE"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
              
PlayerInfo[targetid][pSkinID] = skinid;
          }
          else 
SendClientMessage(playeridCOLOR_GREY"That player is not connected!");
        }
        else 
SendClientMessage(playeridCOLOR_WHITE"SYNTAX: /setskin [playerid]");
    }
    else 
SendClientMessage(playeridCOLOR_GREY"You are not a level 1+ Admin!");
    return 
1;

Код:
C:\Users\Luke\Desktop\SCRIPT\gamemodes\SBRP.pwn(1118) : error 017: undefined symbol "pSkinID"
Reply


Messages In This Thread
[SAVESKIN] Saving Skins - by BarFix - 23.08.2015, 17:58
Re: [SAVESKIN] Saving Skins - by JeaSon - 23.08.2015, 18:02
Re: [SAVESKIN] Saving Skins - by BarFix - 23.08.2015, 18:09
Re: [SAVESKIN] Saving Skins - by JeaSon - 23.08.2015, 18:17
Re: [SAVESKIN] Saving Skins - by BarFix - 23.08.2015, 18:18
Re: [SAVESKIN] Saving Skins - by JeaSon - 23.08.2015, 18:19
Re: [SAVESKIN] Saving Skins - by BarFix - 23.08.2015, 18:22
Re: [SAVESKIN] Saving Skins - by JeaSon - 23.08.2015, 18:24
Re: [SAVESKIN] Saving Skins - by BarFix - 23.08.2015, 18:31
Re: [SAVESKIN] Saving Skins - by JeaSon - 23.08.2015, 18:33

Forum Jump:


Users browsing this thread: 2 Guest(s)