PHP код:
CMD:givemoney(playerid, params[])
{
new id, money, string[128], string2[128],plName[24],aName[24];
GetPlayerName(playerid,aName,sizeof(aName));
GetPlayerName(id,plName,sizeof(plName));
if(pInfo[playerid][Adminlevel] < 4) return SCM(playerid, red, "[ERROR]: You are not allowed to use this command!");
{
if(sscanf(params,"ii",id,money)) return SCM(playerid, red,"[USAGE]: /givemoney (ID) (amount)");
else
GivePlayerMoney(id,money);
format(string, sizeof(string),"You have give player %s %d$!", plName, money);
SCM(playerid, 0xFF6347AA, string);
format(string2 ,sizeof(string2),"{E10000}[CASH]: {FFFFFF}Administrator %s has given you %d$!", aName, money);
SCM(id, 0xFF6347AA, string2);
}
return 1;
}
What? why two strings with 128 cells? It isn't even close to 128, aswell as you could have used only one. Withouting mentioning, this isn't the only command like that.
Also, why did you define all those colors in the gamemode, if you are not even using half of them?