what wrong in this script
#1

Hi!

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;
}

Reply
#2

post the compile log and the line with the error.
Reply
#3

You need to include commands at OnPlayerCommandText and you need to learn what brackets are.
Reply
#4

Quote:
Originally Posted by widowmkr
post the compile log and the line with the error.
i used compile but ....-*-

Reply
#5

Quote:
Originally Posted by ic111164
Quote:
Originally Posted by widowmkr
post the compile log and the line with the error.
i used compile but ....-*-

somettimes same happens to me
Reply
#6

I already told you:
Quote:
Originally Posted by Don Correlli
You need to include commands at OnPlayerCommandText and you need to learn what brackets are.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)