19.09.2013, 18:00
(
Последний раз редактировалось Ahrim; 19.09.2013 в 20:03.
)
works, but how do I format it then?
For example, here's my command.
P/S: This is edited version of the command, but it is all what you need to know regarding it.
What am I supposed to do? How do I format it, or is it impossible?
For example, here's my command.
pawn Код:
CMD:otext(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pMapper] == 1)
{
new job[128], objectid, jobstring[150], string[150];
if(sscanf(params, "s[150]is[150]", job, objectid, jobstring))
{
//
return 1;
}
if(!(0 <= objectid < MAX_DOBJECTS)) return SendClientMessageEx(playerid, COLOR_WHITE, "Invalid dynamic object ID!");
if(strcmp(job, "fontcolor", true) == 0)
{
new value;
value = strval(jobstring);
DynamicObjectInfo[objectid][doFontColor] = value;
format(string, sizeof(string), "Object Font Color assigned to %d", DynamicObjectInfo[objectid][doFontColor]);
SendClientMessageEx(playerid, COLOR_WHITE, string);
SaveDynamicObjects();
format(string, sizeof(string), "%s has edited Objectid %d's Font Color to %d.", GetPlayerNameEx(playerid), objectid, jobstring);
Log("RP/Logs/oedit.log", string);
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD2, "You are not authorized to use that command!");
return 1;
}
return 1;
}
What am I supposed to do? How do I format it, or is it impossible?