Excuse me guys i made this code but im new in pawn lenguage and i want to save the skin in my variable pSkin in user folder how can i do it?
PHP Code:
CMD:setskin(playerid, params[])
{
new userid, skinid;
if (sscanf(params, "ui", userid, skinid))
return SendClientMessage(playerid, COLOR_GRAD, "USAGE: /setskin [Playerid/PartOfName] [Skin ID]");
if (!IsPlayerConnected(userid))
return SendClientMessage(playerid, COLOR_GRAD, "That player is Offline!");
if (!(0 <= skinid <= 311))
return SendClientMessage(playerid, COLOR_GRAD, "Skin can't be below 0 or above 311");
SetPlayerSkin(userid, skinid);
return 1;
}