No commands in my server work
#1

No commands in my server seem to work..
Even if i type a incorrect command i dont even get a SERVER: UNKNOWN COMMAND
Anyone know why?
Reply
#2

You have not scripted them properly? You have missed something?
Does your script load all it's cars ect?
Reply
#3

Everything works except the Commands,
Normally caused by OnPlayerCommandText returning 1, But it isent..
Anyone?
Reply
#4

Any filterscripts running?
Reply
#5

Nope
Reply
#6

Do you have return 1 at the bottom of OnPlayerCommandText?
Reply
#7

Nope
Reply
#8

Any ideas?

EDIT: Turns out my SOS command was causing it:

pawn Код:
dcmd_sos(playerid, params[])
{
new string[128], playername[24];

GetPlayerName(playerid, playername, sizeof(playername));
format(string,sizeof(string),"[SOS] %s needs help at %s",playername, params);
print("SOS Sent");

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SendClientMessage(i,0xFF0000FF,string);
print("SOS Sent2");
}
}

return 1;
}
May someone fix it? Or identify the problem
Reply
#9

Anyone?
Reply
#10

Threre is nothing wrong with that /sos command.
Reply
#11

Well if i add it, Every command in my server stops working..
Know why?
Reply
#12

Scratch that, mistake
Reply
#13

Quote:
Originally Posted by CalgonX
If I recall, it's mandatory that you use '#pragma unused params' in DCMD, if you're not going to use a parameter.
But params is used there?
Reply
#14

Quote:
Originally Posted by MadeMan
Quote:
Originally Posted by CalgonX
If I recall, it's mandatory that you use '#pragma unused params' in DCMD, if you're not going to use a parameter.
But params is used there?
Apologies, my insomnia has killed my brain.
Reply
#15

Lol, Anyone know?
Reply
#16

Have you got: dcmd(command, lenght, cmdtext); under OPCT?
Reply
#17

Yes,
Reply
#18

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)