Hello
#1

What it's wrong there

Код HTML:
CMD:gotocar(playerid, params[])
{
	new carid, vid, Float:vPos[3][MAX_VEHICLES];
	
	if((pInfo[playerid][pAdmin] < 4) && (pInfo[playerid][pHelper] < 4)) return SendClientMessage(playerid, FactColor[10], "You are not authorized to use that command !");
	if(sscanf(params, "i", carid)) return SendClientMessage(playerid, FactColor[11], "USAGE: /gotocar [CarID]");
	
	vid = GetPlayerVehicleID(playerid);
	GetVehiclePos(carid, vPos[0][carid], vPos[1][carid], vPos[2][carid]);
	
	if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(vid, vPos[0][carid]+3.0, vPos[1][carid]+3.0, vPos[2][carid]+0.5);
	else SetPlayerPos(vid, vPos[0][carid], vPos[1][carid], vPos[2][carid] + 2.5);
	
	SendClientMessage(playerid, FactColor[11], "You successfully performed that command !");
	return 1;
}
It give me unknown command ...
Reply


Messages In This Thread
Hello - by Mariciuc223 - 04.08.2015, 19:17
Re: Hello - by Roberto80 - 04.08.2015, 19:26
Re: Hello - by Mariciuc223 - 04.08.2015, 20:06
Re: Hello - by Roberto80 - 04.08.2015, 20:37

Forum Jump:


Users browsing this thread: 2 Guest(s)