SA-MP Forums Archive
No commands in my server work - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: No commands in my server work (/showthread.php?tid=125845)



No commands in my server work - Torran - 05.02.2010

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?


Re: No commands in my server work - Moglizorz. - 05.02.2010

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


Re: No commands in my server work - Torran - 05.02.2010

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


Re: No commands in my server work - Backwardsman97 - 05.02.2010

Any filterscripts running?


Re: No commands in my server work - Torran - 05.02.2010

Nope


Re: No commands in my server work - Backwardsman97 - 05.02.2010

Do you have return 1 at the bottom of OnPlayerCommandText?


Re: No commands in my server work - Torran - 05.02.2010

Nope


Re: No commands in my server work - Torran - 06.02.2010

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


Re: No commands in my server work - Torran - 06.02.2010

Anyone?


Re: No commands in my server work - MadeMan - 06.02.2010

Threre is nothing wrong with that /sos command.


Re: No commands in my server work - Torran - 06.02.2010

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


Re: No commands in my server work - Calgon - 06.02.2010

Scratch that, mistake



Re: No commands in my server work - MadeMan - 06.02.2010

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?


Re: No commands in my server work - Calgon - 06.02.2010

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.


Re: No commands in my server work - Torran - 06.02.2010

Lol, Anyone know?


Re: No commands in my server work - ¤Adas¤ - 06.02.2010

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


Re: No commands in my server work - Torran - 06.02.2010

Yes,


Re: No commands in my server work - Torran - 06.02.2010

Anyone?