21.02.2012, 09:52
Hey , i have this outside a callback ;
and this under public OnPlayerCommandText(playerid, cmdtext[])
i complie without errors , but IG whene i type the command it says "Unknown Command"
anyone can help me ? thank you.
pawn Код:
dcmd_vbox(playerid, params[])
{
#pragma unused params
if (Vip[playerid] < 1 ) {
SendClientMessage(playerid, COLOR_CERVENA, " [!] Only Vips can do that !");
}
else {
if (Vip[playerid] >= 1) {
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateObject(1685, x, y+2.0, z, 0.0, 0.0,0.0);
}
}
return 1;
}
pawn Код:
dcmd(vbox,11,cmdtext);
anyone can help me ? thank you.