#include <a_samp> if(strcmp(cmd, "/setskin", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setskin [playerid/PartOfName] [Skin ID]"); return 1; } new para1; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setskin [playerid/PartOfName] [Skin ID]"); return 1; } new ammount = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 0) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You are forced to Change your Skin by Admin %s.", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* You have changed %s's Skin to Skin ID %d.", giveplayer, ammount); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); PlayerInfo[para1][pChar] = ammount; SetPlayerSkin(para1,ammount); } } } return 0; } |
Originally Posted by widowmkr
post the compile log and the line with the error.
|
Originally Posted by ic111164
Quote:
![]() |
Originally Posted by Don Correlli
You need to include commands at OnPlayerCommandText and you need to learn what brackets are.
|