13.10.2015, 14:52
hi im making a command is this code right or wrong? im getting a error
error:- (113) : error 076: syntax error in the expression, or invalid function call
Код:
stock OldSkin(targetid) { OldSkin == GetPlayerSkin(targetid) }
Код:
CMD:trolladutyoff(playerid,params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_ERROR,"[ERROR]:You are not rcon admin"); new targetid,str[75]; if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,COLOR_ERROR,"[ERROR]:Usage(playerid/name)"); SetPlayerSkin(targetid,OldSkin); // error line! SetPlayerColor(playerid,-1); format(str,sizeof(str),"~G~Admin Duty Disabled."); GameTextForPlayer(targetid,str,3000,3); return 1; }