ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 1438

you fix

by carlos_20 - 10-29-2019 - 03:53 PM
#1
for (int Players = 0; Players < 18; Players++)
{
char str[100];
for (int i = 0; i < sizeof(str); i++)
str[i] = 0;
strcat(str, PLAYER::GET_PLAYER_NAME(Players));
if (NETWORK::NETWORK_IS_PLAYER_CONNECTED(Players))
{
if (Players == PLAYER::PLAYER_ID())
{
strcat(str, " ~g~[Yo]");
}
if (Players == NETWORK::NETWORK_GET_HOST_OF_SCRIPT("freemode", -1, 0))
{
strcat(str, " ~b~[Host]");
}
if (Players >= 16) //SCTV players
{
strcat(str, "~o~[SCTV] %s");
}
addOption(str);
}
else
{
addOption("~m~Noelia_75");
}
if (Players == currentOption - 1);
}
if (optionPress && NETWORK::NETWORK_IS_PLAYER_CONNECTED(currentOption - 1))
{
selectedPlayer = currentOption - 1;
changeSubmenu(Player_Options);
}
ViewInfo(0);
break;
What a mistake I have that shows me the players but the sctv slots don't???
Reply
#2
(10-29-2019 - 03:53 PM)carlos_20 Wrote: for (int Players = 0; Players < 18; Players++)
{
char str[100];
for (int i = 0; i < sizeof(str); i++)
str[i] = 0;
strcat(str, PLAYER::GET_PLAYER_NAME(Players));
if (NETWORK::NETWORK_IS_PLAYER_CONNECTED(Players))
{
if (Players == PLAYER::PLAYER_ID())
{
strcat(str, " ~g~[Yo]");
}
if (Players == NETWORK::NETWORK_GET_HOST_OF_SCRIPT("freemode", -1, 0))
{
strcat(str, " ~b~[Host]");
}
if (Players >= 16) //SCTV players
{
strcat(str, "~o~[SCTV] %s");
}
addOption(str);
}
else
{
addOption("~m~Noelia_75");
}
if (Players == currentOption - 1);
}
if (optionPress && NETWORK::NETWORK_IS_PLAYER_CONNECTED(currentOption - 1))
{
selectedPlayer = currentOption - 1;
changeSubmenu(Player_Options);
}
ViewInfo(0);
break;
What a mistake I have that shows me the players but the sctv slots don't???

try remove =
or try == 17
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply
#3
what exactly are you saying?
Judge Judy Is Sexy Asf Can We All Agree?  Love
& Lets Stop The Cracking War M8s Devil )
(Make Modding Fun Again 100emoji   )
Reply
#4
else if (Players ==17) //SCTV players
{
char buf[100];
sprintf(buf, "~b~[SCTV] %s", PLAYER::GET_PLAYER_NAME(Players));
addOption(buf);

}
Thanks so is?
Reply

Users browsing: 1 Guest(s)