21.10.2014, 19:58
hey boys i am trying to make this but when i press the command it turn my server off some one help me out
pls i need an answer help me
pls i need an answer help me
COMMAND:factions(playerid, params[]) { SendClientMessage(playerid, COLOR_BLUE, "(1)LSPD[Members: 0/45][Online ]"); ] |
COMMAND:factions(playerid, params[]) { SendClientMessage(playerid, COLOR_BLUE, "(1)LSPD[Members: 0/45][Online ]"); return 1; } // not sure if that was a writing mistake, but that is not a correct bracket
#include foreach // For Iterator
new Iterator:LSPD_Members<MAX_PLAYERS>;
CMD:factions(playerid, params[])
{
Iter_Add(LSPD_Members, playerid ); // we added a player
SendClientMessage(playerid, COLOR_BLUE, "(1)LSPD[Members: %d/45][Online ]",Iter_Count(LSPD_Members)); // Counted the members
return 1;
}
to make an exit cmd use these to remove
// Iter_Remove(LSPD_Members, playerid );
// Iter_Clear(LSPD_Members);