Uzeo sam mod Perfect Gaming i editovao ga po svom ukusu.Radio sam komandu /avozilo i /amotor i izasao mi neki error u pawnou.Evo errora i komande.
Komanda:YCMD:avozilo(playerid, params[],help)
{
#pragma unused help
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BB | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
new Float:Pos[4];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
if(PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
if(AdminDuty[playerid] == 0 && GMDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"[BB:RP] "SIVA"Morate biti na Admin & GameMaster duznosti!");
{
if(AdminVozilo[playerid] == -1)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, 0, alarm, doors, bonnet, boot, objective);
vozilo1 = CreateVehicle(560,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
PutPlayerInVehicle(playerid,vozilo1,0);
AdminVozilo[playerid] = vozilo1;
SCM(playerid,-1,"INFO | "ZUTA"Stvorili ste Admin/GameMaster Vozilo.");
}
else if(AdminVozilo[playerid] != -1)
{
DestroyVehicle(AdminVozilo[playerid]);
AdminVozilo[playerid] = -1;
SCM(playerid,-1,"INFO | "ZUTA"Unistili ste Admin/GameMaster Vozilo.");
}
}
else return SCM(playerid,-1,""ZUTA"[BB] "SIVA"Samo Admini i GameMasteri.");
return 1;
}
Error:Users\WebGame\Desktop\Balkan Bro 1.0 (Perfect Gaming Mod)\gamemodes\PGRPG.pwn(25461) : error 029: invalid expression, assumed zero
C:\Users\WebGame\Desktop\Balkan Bro 1.0 (Perfect Gaming Mod)\gamemodes\PGRPG.pwn(25461) : warning 215: expression has no effect
C:\Users\WebGame\Desktop\Balkan Bro 1.0 (Perfect Gaming Mod)\gamemodes\PGRPG.pwn(25461) : error 001: expected token: ";", but found "return"
C:\Users\WebGame\Desktop\Balkan Bro 1.0 (Perfect Gaming Mod)\gamemodes\PGRPG.pwn(25462) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Ako moze neko pomoc jako je hitno.
Probaj vako
[pawn]YCMD:avozilo(playerid, params[],help)
{
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BB | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
new Float:Pos[4];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
if(PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
{
if(AdminDuty[playerid] == 0 && GMDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"[BB:RP] "SIVA"Morate biti na Admin & GameMaster duznosti!");
if(AdminVozilo[playerid] == -1)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, 0, alarm, doors, bonnet, boot, objective);
vozilo1 = CreateVehicle(560,Pos[0],Pos[1],Pos[2],Pos[3],random(1),random(1),500);
PutPlayerInVehicle(playerid,vozilo1,0);
AdminVozilo[playerid] = vozilo1;
SCM(playerid,-1,"INFO | "ZUTA"Stvorili ste Admin/GameMaster Vozilo.");
}
else if(AdminVozilo[playerid] != -1)
{
DestroyVehicle(AdminVozilo[playerid]);
AdminVozilo[playerid] = -1;
SCM(playerid,-1,"INFO | "ZUTA"Unistili ste Admin/GameMaster Vozilo.");
}
}
else return SCM(playerid,-1,""ZUTA"[BB] "SIVA"Samo Admini i GameMasteri.");
return 1;
}[/pawn]
Radi fala.Moze lock