[Pomoc] Ubacivanje ! WAR

Započeo Kunnaâ„¢, Septembar 03, 2012, 04:17:22 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta: FS
Opis Problema: ovako ja na /war pozovem e onda kucam /warpokreni ali pise mapa i to ali nece da me svori na mjestu gdje trebam biti tj na war  igralistu ako moze neko da mi pomogne 
Dio skripte:
Evo pvi dio vidite dali sam gdje pogrijesio ! i u zutom tim 1 a sto je crno tim 2 new Float:War1_x,Float:War1_y,Float:War1_z,Float:War1_r,Float:War2_x,Float:War2_y,Float:War2_z,Float:War2_r;

//Mape za war, dodajete ovako:
//      {Tim1_x, Tim1_y, Tim1_z, Tim1_rotacija, Tim2_x, Tim2_y, Tim2_z, Tim2_rotacija}
// ma kraju { } morate imati zarez (ovako: {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0},) osim kod zadnjih koordinata..
new Float:WarMape[][8] =
{
                    {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0},
{[color=yellow]-110.3039, -103.5038, 3.1172, 346.8858,[/color] 41.4104, 125.5839, 3.1172, 158.5432}

};


Evo vma drgi dio za pokretanje wara
CMD:warpokreni(playerid,params[])
{
if(!Admin(playerid,2)) return SEM
new mapa, vreme;
if(sscanf(params,"ii",mapa,vreme)) return SendClientMessage(playerid, COLOR_GREY, "*Koristi: /warpokreni [id mape] [vreme (u minutima)]"), SendClientMessage(playerid, COLOR_GREY, "*IDevi mapa: 0) Ime mape");
    War1_x = WarMape[mapa][0]; War1_y = WarMape[mapa][1]; War1_z = WarMape[mapa][2]; War1_r = WarMape[mapa][3];
War2_x = WarMape[mapa][4]; War2_y = WarMape[mapa][5]; War2_z = WarMape[mapa][6]; War2_r = WarMape[mapa][7];
war = SetTimer("WarTimer", vreme*60000, false);
warbrojanje = SetTimer("WarBrojanje", 3000, true);
foreach(Player,i)
{
    if(WarTim[i] > 0)
    {
        SpawnPlayer(i);
}
}
WarZapocet = 1;
return 1;}

i evo vam ovo pa pogledajte
public OnPlayerSpawn(playerid)
{
    if(WarTim[playerid] == 0) { SetPlayerColor(playerid, 0xffffffff); }
else if(WarTim[playerid] == 1) { SetPlayerColor(playerid, 0xff0000aa); }
else if(WarTim[playerid] == 2) { SetPlayerColor(playerid, 0x0000ffaa); }
if(WarZapocet == 1)
{
    if(WarTim[playerid] == 1)
    {
        SetPlayerVirtualWorld(playerid, War_VW);
        SetPlayerPos(playerid, War1_x, War1_y, War1_z);
        SetPlayerFacingAngle(playerid, War1_r);
        GivePlayerWeapon(playerid, 24, 500);// dodajte jos oruzja ako vam je volja :D
        GivePlayerWeapon(playerid, 31, 1000);
        GivePlayerWeapon(playerid, 32, 1000);
        GivePlayerWeapon(playerid, 4, 1);
        SetPlayerHealth(playerid, 100);
return 1;
}
else if(WarTim[playerid] == 2)
    {
        SetPlayerVirtualWorld(playerid, War_VW);
        SetPlayerPos(playerid, War2_x, War2_y, War2_z);
        SetPlayerFacingAngle(playerid, War2_r);
        GivePlayerWeapon(playerid, 24, 500);// dodajte jos oruzja ako vam je volja :D
        GivePlayerWeapon(playerid, 31, 1000);
            GivePlayerWeapon(playerid, 32, 1000);
            GivePlayerWeapon(playerid, 4, 1);
        SetPlayerHealth(playerid, 100);
return 1;
}
}
return 1;
}

Ovo je sve sto je rijec o spawnu ako mozete da mi pomognete !
/warpokreni hoce ali nece da pokrene war nece da spawna na war igraliste !!

Vegas.

new Float:WarMape[][8] =
{
                    {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0},
{Tim1_-110.3039, Tim1_-103.5038, Tim1_3.1172, Tim1_346.8858, Tim2_41.4104, Tim2_125.5839, Tim2_3.1172, Tim2_158.5432}

};




Opet izbacuje mi error 
C:\Users\Kenan\Desktop\Novi Mod bez bugova\filterscripts\ex_War.pwn(45) : error 017: undefined symbol "Tim1_"
C:\Users\Kenan\Desktop\Novi Mod bez bugova\filterscripts\ex_War.pwn(47) : error 054: unmatched closing brace ("}")
C:\Users\Kenan\Desktop\Novi Mod bez bugova\filterscripts\ex_War.pwn(47) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.


evo linije
new Float:WarMape[][8] =
{
                    {0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0},
{Tim1_ -110.3039, Tim1_ -103.5038, Tim1_ 3.1172, Tim1_ 346.8858, Tim2_ 41.4104, Tim2_ 125.5839, Tim2_ 3.1172, Tim2_ 158.5432};

};

Eto linije !

probo sam opet nista ja kad ukucam warpokreni uzbaci id mape ja stavim 1 oi kolko minuta i nista se nedogodi !!

Prozovi se na war, pokreni war, i ubij se pa reci jel te spawna na lokaciji...

sve uradio sto si reko bte' ali nista opet ¨¨¨¨!


koristim jb alis ad cu ga iskljuxiti pa cu ga probat

sory za DP ali radi bez anticita lai nece stvara me u bolncici
kako0 da me stvori na ratistu pls odg te mi jos jednom sory za DP
Ovo mi je jako vazno !!


Prebaci war u mod i zameni SetPlayerPos sa JBC_SetPlayerPos il kako ide vec :)

ubacio sam war sve noramlno radi ali sad nemam oruzja ! omg !

Vegas.

JBC_GivePlayerWeapon, ili SafeJBC_GivePlayerWeapon.