help me with this [got ss pls check]
#1

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
Reply
#2

show us the script/code?
Reply
#3

here are codes
Quote:

COMMAND:factions(playerid, params[])
{
SendClientMessage(playerid, COLOR_BLUE, "(1)LSPD[Members: 0/45][Online ]");
]

Reply
#4

Every command needs to return value.
Code:
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
Reply
#5

-_- lol i know that its just start ooff command
Reply
#6

No one knows ?!?
Reply
#7

Quote:
Originally Posted by Diti1
View Post
-_- lol i know that its just start ooff command
Then give the full code.
Reply
#8

pawn Code:
#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);
not tested but i think its all you need "Correct me if i am wrong".
Reply
#9

i tried to use this but it wont work any other idea ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)