04.02.2012, 07:43
Hy guys.... What's the function to check empty statement ?
Like:
I have a var CreatedVehicles[10];
wanna check if CreatedVehicles[9] is empty
Now in above cmd...I wanna CreatedVehicles[id], as its empty I tped to 0,0,0 coords.
Like:
I have a var CreatedVehicles[10];
wanna check if CreatedVehicles[9] is empty
PHP код:
CMD:getcveh(playerid,params[])
{
if(P_Var[playerid][p_Adminlevel] > 0)
{
new id,Float: Pos[3];
if(sscanf(params,"u",id))
return SendClientMessage(playerid, C_GREY, "Format: /Getveh [vehicle id]");
else
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
SetVehiclePos(CreatedVehicles[id],Pos[0],Pos[1],Pos[2]);
}
else {
SendClientMessage(playerid,C_GRAD,"You are not authorized to use this command!");
}
return 1;
}