nem jó.Ezeknél is ugyan az a hiba.
[pawn]CMD:goto(playerid,vehicleid,params[])
{
if (Belepve[playerid] != 0)
{
new id;
if(sscanf(params,\"d\",id))return SendClientMessage(playerid,SZURKE,\"Használat: /goto [iD]\");
{
if(id != INVALID_PLAYER_ID)
{
if(JatekosInfo[playerid][Admin] >= 1)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(id,x,y,z);
if (GetPlayerState(playerid) == 2)
{
new kocsi = GetPlayerVehicleID(playerid);
SetVehiclePos(kocsi,x,y+4,z);
SetVehicleVirtualWorld(kocsi,GetPlayerVirtualWorld(id));
}
if (GetPlayerState(playerid) != 2)
{
SetPlayerPos(playerid,x,y+2,z);
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
SetPlayerInterior(playerid, GetPlayerInterior(id));
}
}
else SendClientMessage(playerid, HIBA, \"Minimum 1-es szintû adminnak kell lenned!\");
}
else SendClientMessage(playerid, HIBA, \"Nincs ilyen játékos!\");
}
}
else SendClientMessage(playerid, HIBA, \"Be kell jelentkezned!\");
return 0;
}
CMD:gethere(playerid,vehicleid,params[])
{
if (Belepve[playerid] != 0)
{
new id;
if(sscanf(params,\"d\",id))return SendClientMessage(playerid,SZURKE,\"Használat: /gethere [iD]\");
{
if(id != INVALID_PLAYER_ID)
{
if(JatekosInfo[playerid][Admin] >= 1)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
if (GetPlayerState(id) == 2)
{
new kocsi = GetPlayerVehicleID(id);
SetVehiclePos(kocsi,x,y+4,z);
SetVehicleVirtualWorld(kocsi,GetPlayerVirtualWorld(playerid));
}
if (GetPlayerState(id) != 2)
{
SetPlayerPos(id,x,y+2,z);
SetPlayerVirtualWorld(id,GetPlayerVirtualWorld(playerid));
SetPlayerInterior(id, GetPlayerInterior(playerid));
}
}
else SendClientMessage(playerid, HIBA, \"Minimum 1-es szintû adminnak kell lenned!\");
}
else SendClientMessage(playerid, HIBA, \"Nincs ilyen játékos!\");
}
}
else SendClientMessage(playerid, HIBA, \"Be kell jelentkezned!\");
return 0;
}[/pawn]