03.03.2015, 20:41
i have problem.
i got problem when updated sscanf2.
when use cmd /rac for respawn all cars, server send only two messages:
but this messages dont send:
i got problem when updated sscanf2.
when use cmd /rac for respawn all cars, server send only two messages:
Код:
SendClientMessageToAll(-1, ""COL_RED"[SERVER]: "COL_GREY"Ukoliko ne zelite da se vase aute respawna, budite u vasem vozilu."); SendClientMessage(playerid, COLOR_GREY, ""COL_ORANGE"[SERVER]: "COL_WHITE"Pokrenuo si respawn nekoristenih vozila.");
Код:
format(pstring, sizeof(pstring),""COL_ORANGE"[SERVER]: "COL_WHITE"Admin "COL_ORANGE"%s "COL_WHITE"je pokrenuo respawn vozila, sva nekoristena vozila ce se respawnati za 20 sekundi.", sendername); SendClientMessageToAll(COLOR_RED,pstring);
Код:
CMD:rac(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_RED, "[GRESKA]: "COL_WHITE"Nemas prava za koristenje ove komande."); else { new pstring[248], sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); format(pstring, sizeof(pstring),""COL_ORANGE"[SERVER]: "COL_WHITE"Admin "COL_ORANGE"%s "COL_WHITE"je pokrenuo respawn vozila, sva nekoristena vozila ce se respawnati za 20 sekundi.", sendername); SendClientMessageToAll(COLOR_RED,pstring); SendClientMessageToAll(-1, ""COL_RED"[SERVER]: "COL_GREY"Ukoliko ne zelite da se vase aute respawna, budite u vasem vozilu."); SendClientMessage(playerid, COLOR_GREY, ""COL_ORANGE"[SERVER]: "COL_WHITE"Pokrenuo si respawn nekoristenih vozila."); SetTimer("RACtime", 20000, 0); } return 1; }