Unknown command problem -
LuckyPlaya` - 26.04.2013
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?
Re: Unknown command problem -
nor15 - 26.04.2013
show us the OnPlayerCommandText
Re: Unknown command problem -
LuckyPlaya` - 26.04.2013
For gates
dcmd(placegate,9,cmdtext);
dcmd(gate,4,cmdtext);
dcmd(removegate,10,cmdtext);
dcmd(gateinfo,8,cmdtext);
Re: Unknown command problem -
nor15 - 26.04.2013
show the placegate command
Re: Unknown command problem -
LuckyPlaya` - 26.04.2013
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 Float
Pos[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;
}
Re: Unknown command problem -
DuarteCambra - 26.04.2013
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 Float Pos[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.