unknown commands error - 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: unknown commands error (
/showthread.php?tid=274086)
unknown commands error -
rekatluos - 04.08.2011
I got a new GM from a friend ,had to fix some missing includes , some "number do not match definitions"errors etc and the server started . The problem is that i cant use any command in-game ,all commands say Uknown Command ,besides that everything works perfectly (there are points where you can enter building and everything the GameMode has to offer ) .
I think this is something globally cause i didnt rly see any problem in the commands .
this is a example of a command ,i dont see anything wrong anyway
pawn Код:
if(strcmp(cmd, "/aparkcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new Float:x,Float:y,Float:z;
new Float:a;
new carid;
carid = GetPlayerVehicleID(playerid);
GetPlayerName(playerid, playername, sizeof(playername));
GetVehiclePos(carid, x, y, z);
GetVehicleZAngle(carid, a);
if(PlayerInfo[playerid][pAdmin] >= 1339)
{
CarInfo[carid][cLocationx] = x;
CarInfo[carid][cLocationy] = y;
CarInfo[carid][cLocationz] = z;
CarInfo[carid][cAngle] = a;
format(string, sizeof(string), "~n~ You have parked your car in this location. ~n~");
GameTextForPlayer(playerid, "You have parked this car in this position. It will respawn here.", 10000, 3);
OnPropUpdate();
DestroyVehicle(carid);
CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
format(string, sizeof(string), "[AdmWarning]: %s a folosit comanda /apark.",playername);
ABroadCast(COLOR_LIGHTRED,string, 5);
return 1;
}
else
{
SCM(playerid, COLOR_GREY, " You are not authorized to use that command !");
return 1;
}
}
return 1;
}
thx in advance
Re: unknown commands error -
rekatluos - 04.08.2011
bump,nobody ?
Re: unknown commands error -
Toreno - 04.08.2011
Does all your commands say unknown command?
Re: unknown commands error -
rekatluos - 04.08.2011
yep ,all of them ,actually i added a command that surely works (from another GM ) and it says the same ,unknown command