10.04.2014, 14:21
You suddenly open a bracket and then you use else statement without an if before. I'm not aware of what your command is supposed to do so either:
or
That depends on you.
pawn Код:
dcmd_bot(playerid,params[])
{
#pragma unused params
if(pInfo[playerid][Adminlevel] < 1) return SendClientMessage(playerid, COLOR_RED, ""ERROR_MESSAGE"");
if (/* SOME EXPRESSION */)
{
SetPlayerAttachedObject( playerid, 0, 19078, 1, 0.337255, -0.102219, -0.170282, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
}
else
{
RemovePlayerAttachedObject(playerid, 1907;
}
return 1;
}
pawn Код:
dcmd_bot(playerid,params[])
{
#pragma unused params
if(pInfo[playerid][Adminlevel] < 1) return SendClientMessage(playerid, COLOR_RED, ""ERROR_MESSAGE"");
SetPlayerAttachedObject( playerid, 0, 19078, 1, 0.337255, -0.102219, -0.170282, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
RemovePlayerAttachedObject(playerid, 1907;
return 1;
}