Unknown command problem
#1

I have added simple gate system in my GM,and now i cant use any command at all..message comes up SERVER:UNKNOWN COMMAND

How can i fix it?
Reply
#2

show us the OnPlayerCommandText
Reply
#3

For gates

dcmd(placegate,9,cmdtext);
dcmd(gate,4,cmdtext);
dcmd(removegate,10,cmdtext);
dcmd(gateinfo,8,cmdtext);
Reply
#4

show the placegate command
Reply
#5

dcmd_placegate(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 6)
{
if( isnull( params) )
{
SendClientMessage(playerid, COLOR_WHITE, "HINT: /placegate [password]" );
return 1;
}
if( !strval( params ) )
{
SendClientMessage(playerid, COLOR_WHITE, "* You need to input numbers." );
return 1;
}
if( IsPlayerInAnyVehicle(playerid ) )
{
SendClientMessage(playerid, COLOR_WHITE, "* You need to exit your vehicle." );
return 1;
}
new FloatPos[4];
GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2] );
GetPlayerFacingAngle(playerid, pPos[3] );
CreateGate(playerid, strval( params ), pPos[0], pPos[1], pPos[2], pPos[3] );
SendClientMessage(playerid, COLOR_WHITE, "* You succesfully created a movable gate. Use /gate to open or close them." );
return 1;
}
return 1;
}
Reply
#6

Quote:
Originally Posted by LuckyPlaya`
Посмотреть сообщение
dcmd_placegate(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 6)
{
if( isnull( params) )
{
SendClientMessage(playerid, COLOR_WHITE, "HINT: /placegate [password]" );
return 1;
}
if( !strval( params ) )
{
SendClientMessage(playerid, COLOR_WHITE, "* You need to input numbers." );
return 1;
}
if( IsPlayerInAnyVehicle(playerid ) )
{
SendClientMessage(playerid, COLOR_WHITE, "* You need to exit your vehicle." );
return 1;
}
new FloatPos[4];
GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2] );
GetPlayerFacingAngle(playerid, pPos[3] );
CreateGate(playerid, strval( params ), pPos[0], pPos[1], pPos[2], pPos[3] );
SendClientMessage(playerid, COLOR_WHITE, "* You succesfully created a movable gate. Use /gate to open or close them." );
return 1;
}
return 1;
}
Use [ PAWN ] [/PAWN ] ( without the spaces ) so we can help you out, please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)