01.09.2018, 16:55
(
Последний раз редактировалось GameOvr; 02.09.2018 в 05:16.
)
As of the topic command works well as the way that I want to, but the problem is... server says it's an Invalid command
there are some other mini games except DM that's y there's a var called "INMINIGAME" but any way I removed others and only put codes relevent to DM
The error SERVER:Unknown command starts giving me that message when I put the part in red (loop)
help plz
Код:
CMD:exit (playerid, params[])
{
if(INMINIGAME[playerid] == false) return SendClientMessage(playerid, COLOR_ERROR, "You are not in a minigame");
INMINIGAME[playerid] = false;
if(INDM[playerid] == true)
{
ResetPlayerWeapons(playerid);
INDM[playerid] = false;
//spawn info here
PlayerTextDrawHide(playerid, DM0);
PlayerTextDrawHide(playerid, DM1);
PlayerTextDrawHide(playerid, DM2);
PlayerTextDrawHide(playerid, DM3);
PlayerTextDrawHide(playerid, DM4);
PlayerTextDrawHide(playerid, DM5);
if(DMID[playerid] == 1)
{
DM1PLAYERS--;
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(string,sizeof(string),"{FFFF00}%s {800000}has left dm1",name);
SendClientMessageToAll(COLOR_LEFT, string);
}
else if(DMID[playerid] == 2)
{
DM2PLAYERS--;
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(string,sizeof(string),"{FFFF00}%s {800000}has left dm2",name);
SendClientMessageToAll(COLOR_LEFT, string);
}
else if(DMID[playerid] == 3)
{
DM3PLAYERS--;
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(string,sizeof(string),"{FFFF00}%s {800000}has left dm3",name);
SendClientMessageToAll(COLOR_LEFT, string);
}
else if(DMID[playerid] == 4)
{
DM4PLAYERS--;
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(string,sizeof(string),"{FFFF00}%s {800000}has left dm4",name);
SendClientMessageToAll(COLOR_LEFT, string);
}
else if(DMID[playerid] == 5)
{
DM5PLAYERS--;
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(string,sizeof(string),"{FFFF00}%s {800000}has left dm5",name);
SendClientMessageToAll(COLOR_LEFT, string);
}
for(new i = 0; i < sizeof pWeapons; i++)
{
GivePlayerWeapon(playerid, pWeapons[playerid][0][i], pWeapons[playerid][1][i]);
}
}
return 1;
}
The error SERVER:Unknown command starts giving me that message when I put the part in red (loop)
help plz





