help me with this [got ss pls check] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help me with this [got ss pls check] (
/showthread.php?tid=542730)
help me with this [got ss pls check] - Diti1 - 21.10.2014
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
Re: help me with this [got ss pls check] -
Mark_Weston - 21.10.2014
show us the script/code?
Re: help me with this [got ss pls check] - Diti1 - 21.10.2014
here are codes
Quote:
COMMAND:factions(playerid, params[])
{
SendClientMessage(playerid, COLOR_BLUE, "(1)LSPD[Members: 0/45][Online ]");
]
|
Re: help me with this [got ss pls check] -
dominik523 - 21.10.2014
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
Re: help me with this [got ss pls check] - Diti1 - 21.10.2014
-_- lol i know that its just start ooff command
Re: help me with this [got ss pls check] - Diti1 - 22.10.2014
No one knows ?!?
Re: help me with this [got ss pls check] -
Steel_ - 22.10.2014
Quote:
Originally Posted by Diti1
-_- lol i know that its just start ooff command
|
Then give the full code.
Re: help me with this [got ss pls check] -
gurmani11 - 22.10.2014
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".
Re: help me with this [got ss pls check] - Diti1 - 22.10.2014
i tried to use this but it wont work any other idea ?