19.02.2012, 16:22
i just got errors i need it in this format how would i best convert it
pawn Код:
COMMAND:slap(playerid, params[])
{
SendAdminText(playerid, "/slap", params);
{
new ID;
if(APlayerData[playerid][PlayerLevel] < 1) return SendClientMessage(playerid, -1, "{ff0000}you are not admin");
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "{ff0000}Use: /slap [ID]");
new Float:Pos[3];
GetPlayerPos(ID, Pos[0], Pos[1], Pos[2]);
SetPlayerPos(ID, Pos[0], Pos[1], Pos[2]+10);
}
return 1;
}