Deo skripte(ovo je new):
new Text:TDEditor_TD;Deo skripte(ovo je cmd):
CMD:bojatd(playerid, params[])
{
new stringic;
if(sscanf(params, "s", stringic)) return KORISCENJE(playerid, "/bojatd [crvena-default-zuta-narandzasta-roza]");
if(strcmp(stringic, "crvena", true) == 0)
{
TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawColor(TDEditor_TD, 0xDB1605FF);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
}
if(strcmp(stringic, "default", true) == 0)
{
TextDrawColor(TDEditor_TD, 7596799);
TextDrawColor(TDEditor_TD, 7596799);
TextDrawColor(TDEditor_TD, 7596799);
TextDrawColor(TDEditor_TD, 7596799);
TextDrawColor(TDEditor_TD, 7596799);
TextDrawColor(TDEditor_TD, 7596799);
TextDrawColor(TDEditor_TD, 0xFFFFFFFF);
TextDrawColor(TDEditor_TD, 7596799);
TextDrawColor(TDEditor_TD, 7596799);
TextDrawColor(TDEditor_TD, 7596799);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
}
if(strcmp(stringic, "zuta", true) == 0)
{
TextDrawColor(TDEditor_TD, 0xFFFF00AA);
TextDrawColor(TDEditor_TD, 0xFFFF00AA);
TextDrawColor(TDEditor_TD, 0xFFFF00AA);
TextDrawColor(TDEditor_TD, 0xFFFF00AA);
TextDrawColor(TDEditor_TD, 0xFFFF00AA);
TextDrawColor(TDEditor_TD, 0xFFFF00AA);
TextDrawColor(TDEditor_TD, 0xFFFF00AA);
TextDrawColor(TDEditor_TD, 0xFFFF00AA);
TextDrawColor(TDEditor_TD, 0xFFFF00AA);
TextDrawColor(TDEditor_TD, 0xFFFF00AA);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
}
if(strcmp(stringic, "narandzasta", true) == 0)
{
TextDrawColor(TDEditor_TD, 0xFFAF00FF);
TextDrawColor(TDEditor_TD, 0xFFAF00FF);
TextDrawColor(TDEditor_TD, 0xFFAF00FF);
TextDrawColor(TDEditor_TD, 0xFFAF00FF);
TextDrawColor(TDEditor_TD, 0xFFAF00FF);
TextDrawColor(TDEditor_TD, 0xFFAF00FF);
TextDrawColor(TDEditor_TD, 0xFFAF00FF);
TextDrawColor(TDEditor_TD, 0xFFAF00FF);
TextDrawColor(TDEditor_TD, 0xFFAF00FF);
TextDrawColor(TDEditor_TD, 0xFFAF00FF);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
}
if(strcmp(stringic, "roza", true) == 0)
{
TextDrawColor(TDEditor_TD, 0xDF0172FF);
TextDrawColor(TDEditor_TD, 0xDF0172FF);
TextDrawColor(TDEditor_TD, 0xDF0172FF);
TextDrawColor(TDEditor_TD, 0xDF0172FF);
TextDrawColor(TDEditor_TD, 0xDF0172FF);
TextDrawColor(TDEditor_TD, 0xDF0172FF);
TextDrawColor(TDEditor_TD, 0xDF0172FF);
TextDrawColor(TDEditor_TD, 0xDF0172FF);
TextDrawColor(TDEditor_TD, 0xDF0172FF);
TextDrawColor(TDEditor_TD, 0xDF0172FF);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
TextDrawShowForPlayer(playerid,TDEditor_TD);
}
SendClientMessage(playerid,-1,"{37A4DB} {FFFFFF}Uspesno ste promenili boju TD-ova.");
return 1;
}Debug iz server_log: //
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/gallery/7lzCfyv