Commands are not working - 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)
+--- Thread: Commands are not working (
/showthread.php?tid=495488)
Commands are not working -
FaZeRs - 17.02.2014
So when i type some command which are scripted in my gamemode it wont work.
I got only - SERVER: Unknown Command
http://www.bildites.lv/images/7vptz1hhvyxb6qy0083q.png
Re: Commands are not working -
kooltuO - 17.02.2014
Any errors/warnings when compiling your gamemode?
Re: Commands are not working -
Mobeen - 17.02.2014
Did the gamemode files and filterscripts compile properly before you started up the server?
Re: Commands are not working -
FaZeRs - 17.02.2014
Yes, i have no errors when compiling. Only when i run server
PHP код:
[18:07:14] *** CreateDynamicObject: Expecting 12 parameter(s), but found 11
Re: Commands are not working -
[EnErGyS]KING - 17.02.2014
Can you show "OnPlayerCommandText",
By the way "Wikia" says
Quote:
Returning 0 informs the server that the command hasn't been processed by this script.OnPlayerCommandText will be called in other scripts until one returns 1.If no scripts return 1, the 'SERVER: Unknown Command' message will be shown.
|
Re: Commands are not working -
FaZeRs - 17.02.2014
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;
}
Re: Commands are not working -
FaZeRs - 17.02.2014
No one can help? I really need help guys
Re: Commands are not working -
SPA - 17.02.2014
Show your public OnPlayerCommandText(playerid, cmdtext[]) and check if return 1;
_________________
xXx Stunt Paradise Awesome
Server IP:
Click Here!
Hosted Tab Game-MP for 10 Euro / per month
Hosted Tab + Server host 50 slots + Control Panel for 15 Euro
Skype: MahdiAsali
€10 Euro for Hosted List
Re: Commands are not working -
ReD_HunTeR - 17.02.2014
do you want this?
pawn Код:
forward OnPlayerCommandPerformed(playerid,cmdtext[],success);
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success)
{
SendClientMessage(playerid,0xFF0000AA,"Unknown Command!, type anything here.. ");
}
return 1;
}
Re: Commands are not working -
FaZeRs - 17.02.2014
All comands in my gamemode are not working and i have it already