warning 202: number of arguments does not match definition
GetPlayerSkin(playerid, PlayerData[playerid][OriginalSkin]);
SetPlayerSkin(playerid, PlayerData[playerid][OriginalSkin]);
GetPlayerSkin = This function get player string(obvious)
you can use: pawn Код:
|
PlayerData[playerid][OriginalSkin] = GetPlayerSkin(playerid);
This forum requires that you wait 120 seconds between posts. Please try again in 70 seconds. |
new MyVariable;
MyVariable = GetPlayerSkin(playerid);
printf("The SkinID is %i", MyVariable);
PlayerData[playerid][OriginalSkin] = GetPlayerSkin(playerid);
You use:
[pawn]GetPlayerSkin(playerid);[pawn] For save current skin. Exemple: pawn Код:
pawn Код:
|
enum pData
{
AdminSkin
}
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;
}
CMD:adminduty(playerid, params[])
{
if(PlayerData[ID][AdminLevel] >= 1)
{
SetPlayerSkin(playerid, PlayerData[playerid][AdminSkin]);
}
}
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;
}