FS Cmds return server invalid
#1

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?
Reply
#2

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<<
Reply
#3

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
Reply
#4

Command Posted.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)