SetPlayerSkin
#1

pawn Код:
dcmd_onduty(playerid,params[])
{
    #pragma unused params

    if (IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] > 0)
    {


    if (PlayerInfo[playerid][pSpawn] == 1)
    {

    SetPlayerArmour(playerid, 9999999999);
    SetPlayerHealth(playerid, 999999);
    GivePlayerWeapon(playerid, 40, 9999999);
    GivePlayerWeapon(playerid, 39, 9999999);
    GivePlayerWeapon(playerid, 38, 9999999);
    SetPlayerColor(playerid, 0xFFFF0000);
    oldskin[playerid] = SetPlayerSkin(playerid);
    SetPlayerSkin(playerid, 294);

    }else{
    SendClientMessage(playerid, COLOR_ERROR, "You Cannot Use This Command When You Are Dead.");
    }

    }else{
    SendClientMessage(playerid, COLOR_ERROR, "Unknown Command! Type /cmds For Available Commands.");
    }
    return 1;
}
This is the line
pawn Код:
oldskin[playerid] = SetPlayerSkin(playerid);
Quote:

C:\Users\Arlind\Desktop\Cops&robbers(Fixed by Yossef_Jones, MCZOFT)\gamemodes\cnr.pwn(16487) : warning 202: number of arguments does not match definition

Reply
#2

I think you mean GetPlayerSkin(playerid);

SetPlayerSkin will always need a number, which is the skin parameter..
Reply
#3

i want my last skin what i was
Reply
#4

That's what the above poster told, you've to GET player's skin, not SET to save them.
https://sampwiki.blast.hk/wiki/GetPlayerSkin
Reply
#5

When i use this hi dont get mee the last skin
Reply
#6

You need to store your last skin so you can get it later like GetPlayerSkin(playerid) in PlayerInfo[playerid][pSkin] and then PlayerInfo[playerid][pSkin] == ...
Reply
#7

Idk how to use add on my command and send mee it
Reply
#8

How to fix This Fucking Now ?

Quote:

if (PlayerInfo[playerid][Spawn_SkinId] == 0)
{

Quote:

C:\Users\Arlind\Desktop\Cops&robbers(Fixed by Yossef_Jones, MCZOFT)\gamemodes\cnr.pwn(16507) : warning 213: tag mismatch

Reply
#9

Quote:
Originally Posted by gekas
Посмотреть сообщение
How to fix This Fucking Now ?
this var is bool?
Reply
#10

IDK This
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)