23.07.2009, 12:04
Hi!
Today i have some problem
my script can't compile to AMX
please
what wrong in this script
Today i have some problem
my script can't compile to AMX
please
what wrong in this script
Quote:
#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; } |