FS Cmds return server invalid - 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: FS Cmds return server invalid (
/showthread.php?tid=176621)
FS Cmds return server invalid -
[UG]Scripter - 14.09.2010
Hey,
So every command I have in my FS, Return's my servers "Invalid Command Message" When I add the commands from the FS to the server, It crash's the server.
Any Ideas why?
Re: FS Cmds return server invalid -
willsuckformoney - 14.09.2010
Post the last command, the whole command and make sure its like this
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;//RETURN 1; <<
}//CLOSE <<
return 0;//RETURN 0;<<
}//CLOSE CALLBACK<<
Re: FS Cmds return server invalid -
[UG]Scripter - 14.09.2010
pawn Код:
if (strcmp(cmdtext, "/TaxiJob", true)==0)
{
SendClientMessage(playerid, COLOR_YELLOW, "You are now an on Duty Cabbie!");
SetPlayerColor(playerid,COLOR_BLUE);
SetPlayerSkin(playerid, 17);
ResetPlayerWeapons(playerid);
PlayerTeam[playerid] = Team_Taxi;
SetPlayerTeam(playerid,Team_Taxi);
return 1;
}
// END OF SCRIPT
return SendClientMessage(playerid,LIGHTRED,"VCRP: Invalid Server Command. Try Again!");
}
thas the last cmd + end of OnPlayerCommand text
Re: FS Cmds return server invalid -
[UG]Scripter - 14.09.2010
Command Posted.