Sziasztok ennek a parancsnak mi a baja?
if(strcmp(cmd, \"/álca\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLAT: /álca [JátékosID/NévRészlet] [skinID]\");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 299 || level < 1) { SendClientMessage(playerid, COLOR_GREY, \"Rossz skinID!\"); return 1; }
if(PlayerInfo[playerid][pMember] ==
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
//PlayerInfo[para1][Munkaruha1] = level;
//PlayerInfo[para1][Civilruha1] = level;
format(string, sizeof(string), \"%s megváltoztatta a skined!\", sendername);
SendClientMessage(para1, COLOR_WHITE, string);
format(string, sizeof(string), \"%s skinjét megváltoztattad erre: %d\", giveplayer,level);
SendClientMessage(playerid, COLOR_WHITE, string);
//SetPlayerSkin(para1, PlayerInfo[para1][Munkaruha1]);
SetPlayerSkin(para1, level);
new nev[32];
GetPlayerName(playerid, nev, sizeof(nev));
new h,mi,s,y,m,d;
getdate(y,m,d);
gettime(h,mi,s);
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, \"Nem vagy Hitman!\");
}
}
return 1;
}
[mod]CODE tagek...[/mod]