I can not figure out this warning
#1

I can not figure out this warning


pawn Код:
warning 202: number of arguments does not match definition

pawn Код:
GetPlayerSkin(playerid, PlayerData[playerid][OriginalSkin]);

Thank You


Please Help Me Please
Reply
#2

GetPlayerSkin = This function get player string(obvious)

you can use:

pawn Код:
SetPlayerSkin(playerid,  PlayerData[playerid][OriginalSkin]);
Reply
#3

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
GetPlayerSkin = This function get player string(obvious)

you can use:

pawn Код:
SetPlayerSkin(playerid,  PlayerData[playerid][OriginalSkin]);
I need to be able to get the current player skin and store it


How would i do that


Thank You


Please Help Me Please
Reply
#4

pawn Код:
PlayerData[playerid][OriginalSkin] = GetPlayerSkin(playerid);
GetPlayerSkin only has one parameter.

Quote:

This forum requires that you wait 120 seconds between posts. Please try again in 70 seconds.

Beyond annoying.
Reply
#5

You use:
[pawn]GetPlayerSkin(playerid);[pawn]

For save current skin.

Exemple:
pawn Код:
new MyVariable;
MyVariable = GetPlayerSkin(playerid);
printf("The SkinID is %i", MyVariable);
In Topic:
pawn Код:
PlayerData[playerid][OriginalSkin] = GetPlayerSkin(playerid);
Reply
#6

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
You use:
[pawn]GetPlayerSkin(playerid);[pawn]

For save current skin.

Exemple:
pawn Код:
new MyVariable;
MyVariable = GetPlayerSkin(playerid);
printf("The SkinID is %i", MyVariable);
In Topic:
pawn Код:
PlayerData[playerid][OriginalSkin] = GetPlayerSkin(playerid);
Thank You


One more quick question how comes when i enter a skin id and do /adminduty how comes it dont make me the skin i put in


pawn Код:
enum pData
{
        AdminSkin
}

pawn Код:
CMD:setadminskin(playerid, params[])
{
    if(PlayerData[ID][AdminLevel] >= 1)
    {
        new string[128], newskin[MAX_PLAYER_NAME];
        if(sscanf(params, "s", newskin)) return SendClientMessage(playerid, COLOR_GREEN, "USAGE: /setadminskin <skinid>");
        format(PlayerData[playerid][AdminSkin],MAX_PLAYER_NAME,"%d",newskin);
        format(string, sizeof(string), "You set your admin skin to %d", newskin);
        SendClientMessage(playerid, 0xFFFFFFF, string);
    }
    return 1;
}

pawn Код:
CMD:adminduty(playerid, params[])
{
    if(PlayerData[ID][AdminLevel] >= 1)
        {
            SetPlayerSkin(playerid, PlayerData[playerid][AdminSkin]);
        }
}

Thank You


Please Help Me Please
Reply
#7

pawn Код:
CMD:setadminskin(playerid, params[])
{
    if(PlayerData[ID][AdminLevel] >= 1)
    {
        new string[128], newskin;
        if(sscanf(params, "i", newskin)) return SendClientMessage(playerid, COLOR_GREEN, "USAGE: /setadminskin <skinid>");
        format(string, sizeof(string), "You set your admin skin to %d", newskin);
        SendClientMessage(playerid, 0xFFFFFFF, string);
       
        PlayerData[playerid][AdminSkin] = newskin;
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)