23.02.2012, 18:01
pawn Код:
CMD:mc(playerid,params[])
{
new string[128], targetplayer;
if(sscanf(params, "i", targetplayer)) return SendClientMessage(playerid, 0xFFFFFFFF, "[USAGE]: /mc [id]");
else
{
format(string, 128, "Player Checks:");
if (APlayerData[targetplayer][JobStarted] == true)
{
format(string, 128, "On a mission: {66FF00}Yes");
}
else
format(string, 128, "On a mission: {FF0000}No");
if(APlayerData[targetplayer][MafiaLoad] == true)
{
format(string, 128, "Maffia load: {66FF00}Yes");
}
else
format(string, 128, "Maffia load: {FF0000}No");
if (APlayerData[targetplayer][Overloaded] == true)
{
format(string, 128, "Overloaded: {66FF00}Yes");
}
else
format(string, 128, "Overloaded: {FF0000}No");
SendClientMessage(playerid, 0xFFFFFFFF, string);
}
return 1;
}
Overloaded: No
How to fix that, I'm new in scripting so, an explanation is helpful