06.05.2013, 17:58
My /getcar doesnt work. No errors on compile
pawn Код:
CMD:getcar(playerid, params[])
{
new carid;
if(PlayerInfo[playerid][pAdminLevel] >= 3)
{
if(sscanf(params, "i", carid)) return SendClientMessage(playerid, ~1, "USAGE: /getcar [carid]");
if(carid > MAX_VEHICLES) return SendClientMessage(playerid, ~1, "That vehicle does not exists.");
new Float: gPos[3];
GetPlayerPos(playerid, gPos[0], gPos[1], gPos[2]);
SetVehiclePos(carid, gPos[0] + 2, gPos[1], gPos[2]);
}
return 1;
}