SERVER:Unknown command. error even the command works well -
GameOvr - 01.09.2018
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
Код:
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;
}
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
Re: SERVER:Unknown command. error even the command works well -
NeXTGoD - 01.09.2018
it happens because you are trying to give invalid weapons
https://sampwiki.blast.hk/wiki/Weapons
Re: SERVER:Unknown command. error even the command works well -
GameOvr - 02.09.2018
Quote:
Originally Posted by NeXTGoD
|
Can you give me an example code
Like before entering DM and while exiting DM
Re: SERVER:Unknown command. error even the command works well -
ShihabSoft - 03.09.2018
make sure the pWeapons array has valid weapons and it's filled with data
Re: SERVER:Unknown command. error even the command works well -
GameOvr - 05.09.2018
Quote:
Originally Posted by DuncanShields
such an Idiot trying to Copy Los Santos Territory Server
Hahahahha Pakistani Shit
|
LOL fuck, who are you? and what is the connection between this code and LST
Re: SERVER:Unknown command. error even the command works well -
Sew_Sumi - 05.09.2018
Just ignore this twit ^^ He's not here to help, he's just mad because he hasn't got anything other than hate.
Re: SERVER:Unknown command. error even the command works well -
YouHack - 05.09.2018
Quote:
Originally Posted by Sew_Sumi
Just ignore this twit ^^ He's not here to help, he's just mad because he hasn't got anything other than hate.
|
And you don't either,
So why did you really need to reply?
OP: You'll have to do weapon checks first, and if invalid, return 0
Re: SERVER:Unknown command. error even the command works well -
Sew_Sumi - 05.09.2018
Quote:
Originally Posted by YouHack
And you don't either,
So why did you really need to reply?
OP: You'll have to do weapon checks first, and if invalid, return 0
|
I've actually been talking to the OP in other areas, so you can just step off...
I replied to target the abuser, but hey, you can by all means be salty as well, thing is what you suggested, was already mentioned prior (TWICE), and that's why I didn't repeat it when I posted...
Quote:
Originally Posted by NeXTGoD
|
Quote:
Originally Posted by ShihabSoft
make sure the pWeapons array has valid weapons and it's filled with data
|
Eh... So rather than posting the same thing over and over bolstering post count for the sake of it, I just posted telling the OP to ignore the idiot, and I'd even suggest you are the same YouHack...
Quote:
Originally Posted by DuncanShields
And you virgin shitposting all over samp forums ?
Instead of posting crap to increase your POST COUNT , TRY TO HELP people.
|
I'm helping him ignore your bullshit. Cry more.
Re: SERVER:Unknown command. error even the command works well -
GameOvr - 05.09.2018
Quote:
Originally Posted by DuncanShields
And you virgin shitposting all over samp forums ?
Instead of posting crap to increase your POST COUNT , TRY TO HELP people.
|
lol wait, Let's think OK I'm going to copy LST and host a server so what's the matter with u? you are just an asshole
that's suck around others scripts tho you don't know how to make a server like LST and am I being stupid automatically because of copying LST? HUH
Re: SERVER:Unknown command. error even the command works well -
GameOvr - 05.09.2018
Quote:
Originally Posted by Sew_Sumi
I'm helping him ignore your bullshit. Cry more.
|
Thx bro actually problem is still not solved
Re: SERVER:Unknown command. error even the command works well -
GameOvr - 05.09.2018
Quote:
Originally Posted by DuncanShields
|
LOL by that post all explains that you don't know english well I told that "
Let's think" can't you see that part ?
Re: SERVER:Unknown command. error even the command works well -
GameOvr - 05.09.2018
Quote:
Originally Posted by DuncanShields
You kid Got Ban For Aimbot Hacker , +Advertise Your Shit Ser ver To all PLayers + try Copy with Editing Something hahahah
You so shit , Look at You Paki !
I will Report you On LST , SAy Bye Fucker !
|
lol did you see my game folders I have posted them on LST forum and all other ban applications were unbanned after posting their game folders if folders are clean... and mine too clean. but I'm not unbanned... Tell me is there any other way to prove that I'm clean? I did everything but they refused me
Re: SERVER:Unknown command. error even the command works well -
GameOvr - 05.09.2018
Quote:
Originally Posted by DuncanShields
As I said you Fucking Idiot ,
You Copy everything + Advertise uR shit Servers on LST to all Players ,
Now you say U dont do that ?
Stupid paki hahaha
|
LOL I'm not pakistan I'm a ....(It's a secret)
Re: SERVER:Unknown command. error even the command works well -
Sew_Sumi - 05.09.2018
Just ignore him, he'll be banned before long.
Have you checked the weapons are valid as was mentioned in the first few posts?
Have you tried outputting the values of the weapons variables themselves to the log file using printf?
Re: SERVER:Unknown command. error even the command works well -
YouHack - 05.09.2018
Quote:
Originally Posted by Sew_Sumi
Just ignore him, he'll be banned before long.
Have you checked the weapons are valid as was mentioned in the first few posts?
Have you tried outputting the values of the weapons variables themselves to the log file using printf?
|
You'll be banned as well, and if not; that will be considered something else, and don't even try to edit your posts,
Plus you've complained above that I posted the same as what they posted, so why do you repost too?
It would be fair if we all get banned, yes I have gone off topic as well and I deserve it as much as you do.
Re: SERVER:Unknown command. error even the command works well -
Sew_Sumi - 05.09.2018
Quote:
Originally Posted by YouHack
You'll be banned as well, and if not; that will be considered something else, and don't even try to edit your posts,
Plus you've complained above that I posted the same as what they posted, so why do you repost too?
It would be fair if we all get banned, yes I have gone off topic as well and I deserve it as much as you do.
|
No I won't be, and I can assure you of that.
I don't need to edit my posts as everything I've stated, I stand behind...
I didn't repost it, I mentioned it because he said it still wasn't working.....
Are you even looking at the thread or are you selectively looking for the argument, because that, is what will get you banned.....
I'm simply telling my friend here, who has contacted me in the past for help, to ignore you clowns because you're just bad news... Nothing more.
There's nothing more off-topic than calling people racist slurs and throwing out complete vitriol simply for the sake of it, throwing in a line of 'try this' to cover your sorry ass.
Re: SERVER:Unknown command. error even the command works well -
Sew_Sumi - 05.09.2018
Obviously you've got a lot of shit to do on this forum... /s
Re: SERVER:Unknown command. error even the command works well -
ShihabSoft - 05.09.2018
Quote:
Originally Posted by Sew_Sumi
Obviously you've got a lot of shit to do on this forum... /s
|
Ignorance is bliss haha
Re: SERVER:Unknown command. error even the command works well -
GameOvr - 07.09.2018
Guys here is my code plz tell me what's wrong here,
Код:
// global variable
new pWeapons[MAX_PLAYERS][2][12];
// on enter DM
new weaponID, weaponAmmo;
for(new i, j = 0; i < 12; i++)
{
GetPlayerWeaponData(playerid, i, weaponID, weaponAmmo);
if(weaponID != 0)
{
pWeapons[playerid][0][j] = weaponID;
pWeapons[playerid][1][j] = weaponAmmo;
j++;
}
}
// on exit DM
for(new i = 0; i < sizeof pWeapons; i++)
{
GivePlayerWeapon(playerid, pWeapons[playerid][0][i], pWeapons[playerid][1][i]);
}
This code is working but the problem is it says [BOLD]SERVER:Unknown command.[/BOLD]
Re: SERVER:Unknown command. error even the command works well -
ShihabSoft - 07.09.2018
Did any of these
SendClientMessageToAll(COLOR_LEFT, string);
work, before you get the unknown command message?