ShowModelSelectionMenu

Započeo Cojkan, Decembar 06, 2017, 16:05:23 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: Up Rp od greedya
Detaljan opis problema: Ubacio sam novu komandu za /avozilo da mi stvori ShowModelSelectionMenu.Nasao sam ShowModelSelectionMenu na githubu,kopirao i ubacio u inc file.Taj file sam ubacio u pawno pa include. Definisao sam #define vozilolist i #include < mSelection > . Pocetnik sam nemojte se smejati :D
Dio skripte: Kodovi koje sam nasao na bs[pawn] YCMD:avozilo(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UP:RP| "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
    if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid,-1,"UP:RP| "CRVENA"Ne mozete koristiti ovu komandu dok ste u vozilu.");
   if(PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
   {
       if(AdminDuty[playerid] == 0 && GMDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"[PG:RP] "SIVA"Morate biti na Admin & GameMaster duznosti!");
      if(GetPVarInt(playerid, "stvorioavozilo") == 0) ShowModelSelectionMenu(playerid, vozilolist, "Adm Vozila");
      else if(GetPVarInt(playerid, "stvorioavozilo") == 1)
      {
         DestroyVehicle(AdminVozilo[playerid]);
         Delete3DTextLabel(AdminVozilo[playerid]);
         AdminVozilo[playerid] = -1;
         SetPVarInt(playerid, "stvorioavozilo", 0);
         SCM(playerid,-1,"INFO | "ZUTA"Unistili ste Admin & GM Vozilo.");
      }
   }
   else return SCM(playerid,-1,""ZUTA"[PG:RP] "SIVA"Samo Admini & GameMasteri.");
   return 1;
}
[/pawn]
[pawn] C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(8697) : error 029: invalid expression, assumed zero
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(8697) : warning 215: expression has no effect
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(8697) : error 001: expected token: ";", but found ")"
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(8697) : error 029: invalid expression, assumed zero
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(8697) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
[/pawn]
Neke slike/video za lakse dobivanje pomoci(neobavezno): /


Kada stavim #include < mSelection > izbacuje mi ovaj [pawn]C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(19) : fatal error 100: cannot read from file: "mSelection"

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
[/pawn]
Kada ga izbrisem izbacuje ove.
[pawn]C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(850) : error 010: invalid function or declaration
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7119) : error 017: undefined symbol "CistiUlice"
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7119) : warning 215: expression has no effect
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7119) : error 001: expected token: ";", but found "]"
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7119) : error 029: invalid expression, assumed zero
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7119) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
[/pawn]
Evo linije
[pawn]
850.new CistiUlice[MAX_PLAYERS];
7119.BiraSkin[playerid] = false; SelectCharPlace[playerid] = 0; KoristiDrogu[playerid] = 0; SmeceSakuplja[playerid] = 0; CistiUlice[playerid] = 0;
[/pawn]

Citat: Cojkan poslato Decembar 06, 2017, 18:08:49 POSLE PODNE
Kada stavim #include < mSelection > izbacuje mi ovaj [pawn]C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(19) : fatal error 100: cannot read from file: "mSelection"

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
[/pawn]
Kada ga izbrisem izbacuje ove.
[pawn]C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(850) : error 010: invalid function or declaration
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7119) : error 017: undefined symbol "CistiUlice"
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7119) : warning 215: expression has no effect
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7119) : error 001: expected token: ";", but found "]"
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7119) : error 029: invalid expression, assumed zero
C:\Users\Aleksandar\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7119) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
[/pawn]
Evo linije
[pawn]
850.new CistiUlice[MAX_PLAYERS];
7119.BiraSkin[playerid] = false; SelectCharPlace[playerid] = 0; KoristiDrogu[playerid] = 0; SmeceSakuplja[playerid] = 0; CistiUlice[playerid] = 0;
[/pawn]
Pa jesi ubacio u pawno/include taj include ? I jesi li otvorio tacno taj pawno u kojem si ubacio taj inc?

Facebook - Klik



pokazi di je ta linija, i da nisi u include mapu stavio mselection
CroHerze Skripter