[POMOC] FG Spawn [PLIZZ]

Započeo [ED] Marac, Septembar 21, 2011, 12:27:08 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

ja sam ubaco tako i spawna mi se na mjesto koje zelim i samo mi pookaze objekat pored mene i nista vise pomocc plss

moze pomoc oko OVOG:
C:\Users\Korisnik\Desktop\Mod koji obradujem\gamemodes\FactionGame.pwn(4157) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


EDIT: Stavio sam onako Gotti i opet propadam, oces skinut mod i probat plizz ?
Poslednja Izmena: Septembar 21, 2011, 20:40:59 POSLE PODNE od [ED]Marac

OptX

Daj tu liniju i pogledaj OVO
Poslednja Izmena: Septembar 21, 2011, 20:41:35 POSLE PODNE od [LC]OptX

Citat: [ED]Marac poslato Septembar 21, 2011, 20:38:44 POSLE PODNE
moze pomoc oko OVOG:
C:\Users\Korisnik\Desktop\Mod koji obradujem\gamemodes\FactionGame.pwn(4157) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


EDIT: Stavio sam onako Gotti i opet propadam, oces skinut mod i probat plizz ?

Necu naravno, nego postavi ovde SetPlayerSpawn callback ili tacnije FirstSpawn check

Citat: Emir_Odobasic poslato Septembar 21, 2011, 20:37:26 POSLE PODNE
ja sam ubaco tako i spawna mi se na mjesto koje zelim i samo mi pookaze objekat pored mene i nista vise pomocc plss

Mozda ce ti neko i pomoci kad bi znao da objasnis problem, i otvori svoju temu
Citat: ...Neno... poslato Januar 26, 2013, 23:31:02 POSLE PODNE
Poceo sam mapati i tu je doslo do problema.Nakon par mapa,vidio sam post Gottia i kaze da nista nevalja da je katastrofa,i pocnemo se svadjati,psovati.Popusimo bananu obojica,i nakon toga nesto sam napravio (mapu) i Gotti kaze dobra,uh reko opet me zajebava,i saljem ja njemu na pm reko ti mene zajebavas,kaze on ne,i pomirimo se.Nakon toga postali smo dosta dobri

Citat: Gotti747 poslato Septembar 21, 2011, 20:44:05 POSLE PODNE
Citat: [ED]Marac poslato Septembar 21, 2011, 20:38:44 POSLE PODNE
moze pomoc oko OVOG:
C:\Users\Korisnik\Desktop\Mod koji obradujem\gamemodes\FactionGame.pwn(4157) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


EDIT: Stavio sam onako Gotti i opet propadam, oces skinut mod i probat plizz ?

Necu naravno, nego postavi ovde SetPlayerSpawn callback ili tacnije FirstSpawn check

Citat: Emir_Odobasic poslato Septembar 21, 2011, 20:37:26 POSLE PODNE
ja sam ubaco tako i spawna mi se na mjesto koje zelim i samo mi pookaze objekat pored mene i nista vise pomocc plss

Mozda ce ti neko i pomoci kad bi znao da objasnis problem, i otvori svoju temu

E gotti daj mi tocno napisi sta moram napisat i di i hvala svima na dosadasnjoj pomoci !

Citat: [ED]Marac poslato Septembar 21, 2011, 20:45:50 POSLE PODNE
Citat: Gotti747 poslato Septembar 21, 2011, 20:44:05 POSLE PODNE
Citat: [ED]Marac poslato Septembar 21, 2011, 20:38:44 POSLE PODNE
moze pomoc oko OVOG:
C:\Users\Korisnik\Desktop\Mod koji obradujem\gamemodes\FactionGame.pwn(4157) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


EDIT: Stavio sam onako Gotti i opet propadam, oces skinut mod i probat plizz ?

Necu naravno, nego postavi ovde SetPlayerSpawn callback ili tacnije FirstSpawn check

Citat: Emir_Odobasic poslato Septembar 21, 2011, 20:37:26 POSLE PODNE
ja sam ubaco tako i spawna mi se na mjesto koje zelim i samo mi pookaze objekat pored mene i nista vise pomocc plss

Mozda ce ti neko i pomoci kad bi znao da objasnis problem, i otvori svoju temu

E gotti daj mi tocno napisi sta moram napisat i di i hvala svima na dosadasnjoj pomoci !

Decko si ti nadrogiran ili sta? Napisao sam ti do sada vec u 2 posta "SETPLAYERSPAWN public, tacnije FIRST SPAWN check, ako ne znas taj check da izvodis onda daj ceo public

I da.. ja sam ti vec gore objasnio kako treba i ti si rekao da i dalje "propadas", tada si umeo da zamenis a sada ne umes da kopiras? Ne shvatam te..  ::)
Citat: ...Neno... poslato Januar 26, 2013, 23:31:02 POSLE PODNE
Poceo sam mapati i tu je doslo do problema.Nakon par mapa,vidio sam post Gottia i kaze da nista nevalja da je katastrofa,i pocnemo se svadjati,psovati.Popusimo bananu obojica,i nakon toga nesto sam napravio (mapu) i Gotti kaze dobra,uh reko opet me zajebava,i saljem ja njemu na pm reko ti mene zajebavas,kaze on ne,i pomirimo se.Nakon toga postali smo dosta dobri

Ovo je linija s warningom!          SetPlayerPos(playerid,694.6855,-498.7479,16.3359,357.3250);


evo Publicpublic SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
    SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
    if(PlayerInfo[playerid][pTut] == 0)
    {
    TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
SetPlayerFacingAngle(playerid, 280);
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ClearChatbox(playerid, 10);
SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, "Dobrodosli! Sada cemo vas odvesti u Imigracioni Odsjek.");
SendClientMessage(playerid, COLOR_WHITE, "1. Da li ste musko ili zensko?.");
SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
ClearChatbox(playerid, 2);
return 1;
    }
    if(AdminSpec[playerid] == 1)
{
    return 1;
}
new rand;
new house = PlayerInfo[playerid][pPhousekey];
if(PlayerPaintballing[playerid] != 0)
{
    SafeResetPlayerWeapons(playerid);
      SafeJB_GivePlayerWeapon(playerid, 29, 999);
    rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
    return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
    SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-1123.5748,-999.8547,129.2187);
SetPlayerWorldBounds(playerid,-1052.6142,-1179.6550,-931.2334,-1058.4941)
SendClientMessage(playerid, COLOR_LIGHTRED, "Nepotpuna zatvorska kazna, nazad u zatvor!.");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
    SetPlayerInterior(playerid, 0);
    PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
return 1;
}
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
{
    if(FirstSpawn[playerid] != 1)
    {
    //new string[256];
    new cut = deathcost;
SafeJB_GivePlayerMoney(playerid, -cut);
MedicBill[playerid] = 0;
MedicTime[playerid] = 0;
NeedMedicTime[playerid] = 0;
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,694.6855,-498.7479,16.3359);
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
/*SetPlayerHealth(playerid, 50.0);
PlayerInfo[playerid][pDeaths] += 1;
    SetPlayerInterior(playerid, 3);
    PlayerInfo[playerid][pInt] = 3;
        rand = random(sizeof(gMedicSpawns));
SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 0);
        TogglePlayerControllable(playerid, 0);
        GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~You need to rest now ...", 30000, 3);
          JustDied[playerid] = 1;
        MedicTime[playerid] = 1;
        ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
        if(PlayerInfo[playerid][pDonateRank] > 0)
        {
            NeedMedicTime[playerid] = 30;
        }
        else
        {
        NeedMedicTime[playerid] = 40;
}*/
    return 1;
}
}
if(JustDied[playerid] == 1)
{
    if(GetPlayerVirtualWorld(playerid) != 0 || PlayerInfo[playerid][pVirWorld] != 0)
    {
        SetPlayerVirtualWorld(playerid, 0);
        PlayerInfo[playerid][pVirWorld] = 0;
    }
    SetPlayerPos(playerid, 1182.5638,-1323.5256,13.5790);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
}
if(PlayerInfo[playerid][pCrashed] == 1)
{
    if(TutTime[playerid] == 0 && PlayerInfo[playerid][pTut] == 1 && RegistrationStep[playerid] == 0 && AfterTutorial[playerid] == 0 && FirstSpawn[playerid] == 1)
    {
        SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pVirWorld]);
        SetPlayerInterior(playerid,PlayerInfo[playerid][pInt]);
    SetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z] + 1);
    //SendClientMessage(playerid, COLOR_WHITE, "Crashed, returning where you been.");
    //GameTextForPlayer(playerid, "~p~Crashed~n~~w~returning where you been", 5000, 1);
    return 1;
}
}
if(house !=255)
{
    if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
    {
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
PlayerInfo[playerid][pLocal] = house;
HouseEntered[playerid] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
return 1;
}
}
if(PlayerInfo[playerid][pLeader] == 7)//Mayor spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
    PlayerInfo[playerid][pInt] = 3;
PlayerInfo[playerid][pLocal] = 241;
    return 1;
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,6);
    rand = random(sizeof(gCopPlayerSpawns));
SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
PlayerInfo[playerid][pInt] = 6;
return 1;
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//FBI spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid, 299.7097,183.1322,1007.1719);
SetPlayerFacingAngle(playerid, 90);
PlayerInfo[playerid][pInt] = 3;
return 1;
    }
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 2731.5229,-2451.3643,17.5937);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 2289.8146,-1209.5230,-18.0088);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
    return 1;
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Yakuza spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid, 961.40710449219,-53.224853515625,1001.1245727539);
    SafeJB_GivePlayerWeapon(playerid,30,300);
    PlayerInfo[playerid][pInt] = 5;
    return 1;
}
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//LCN spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 5);
    SetPlayerPos(playerid, 1265.4475,-794.9257,1084.0078);
    SafeJB_GivePlayerWeapon(playerid,30,300);
    PlayerInfo[playerid][pInt] = 5;
    return 1;
}
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
    {
        SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
SafeJB_GivePlayerWeapon(playerid,30,300);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
    {
        SetPlayerToTeamColor(playerid);
        SetPlayerInterior(playerid,3);
SetPlayerPos(playerid, 355.7899,204.0173,1008.3828);
PlayerInfo[playerid][pInt] = 3;
SafeJB_GivePlayerWeapon(playerid, 43, 20);
        return 1;
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi Cab Company spawn
    {
        SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 1226.62, -1816.01,16.243);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
        return 1;
    }
    if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) //tec spawn
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 1979.5685,-2068.7363,13.3850);
SafeJB_GivePlayerWeapon(playerid,30,300);
SetPlayerFacingAngle(playerid, 180);
PlayerInfo[playerid][pInt] = 0;
        return 1;
    }
    if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //??? spawn triads
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,2);
SetPlayerPos(playerid, 2572.9370,-1298.3284,1060.9843);
SafeJB_GivePlayerWeapon(playerid,30,300);
SetPlayerFacingAngle(playerid, 180);
PlayerInfo[playerid][pInt] = 2;
        return 1;
    }
    /*if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Yamaguchi spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, -779.6406,501.2036,1371.7422);
    PlayerInfo[playerid][pInt] = 1;
    return 1;
}
*/
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)//Honnor Crew Spawn Point
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 3);
    SetPlayerPos(playerid, 2495.2605,-1703.7449,1018.3438);
    SafeJB_GivePlayerWeapon(playerid,30,300);
    PlayerInfo[playerid][pInt] = 3;
    return 1;
}
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//Bikeri Spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 11);
    SetPlayerPos(playerid, 501.980987,-69.150199,998.757812);
    SafeJB_GivePlayerWeapon(playerid,30,300);
    PlayerInfo[playerid][pInt] = 11;
    return 1;
}
    if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0) //Spawn za igrace
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,15);
SetPlayerPos(playerid, 2218.0776,-1149.5503,1025.7969);
SetPlayerFacingAngle(playerid, 180);
PlayerInfo[playerid][pInt] = 15;
        return 1;
    }

    if ((gTeam[playerid]) == 1)
    {
SetPlayerToTeamColor(playerid);
rand = random(sizeof(gMedPlayerSpawns));
SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
/*if(PlayerInfo[playerid][pFMember] != 255)
{
    new family = PlayerInfo[playerid][pFMember];
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
    SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
    SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
    return 1;
}*/
    else
     {
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,694.6855,-498.7479,16.3359,357.3250);
SetPlayerFacingAngle(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
}
return 1;
}

Poslednja Izmena: Septembar 21, 2011, 20:55:48 POSLE PODNE od [ED]Marac

dragan12

Citat: [ED]Marac poslato Septembar 21, 2011, 20:53:32 POSLE PODNE
Ovo je linija s warningom!          SetPlayerPos(playerid,694.6855,-498.7479,16.3359,357.3250);
SetPlayerPos(playerid,694.6855,-498.7479,16.3359,357.3250);
Stavio si cetiri kordinate tacnije x,y,z,a a to znaci da ti zadnja netreba
SetPlayerPos(playerid,694.6855,-498.7479,16.3359);


Snich

Pa čovjeće Gotti ti je objasnio i naveo kodove pomoću kojih trebaš da odradiš taj spawn, zašto se potrudiš da to i ućiniš?
Daj mi koordinate koje imaš za svoj novi spawn?


Evo sredio sam spawn samo kad se logiram stavime na moj spawn onda mi ide ona muzika i trebam pricekat 20 30 sekundi i onda me opet baci na spawn kako mogu napravit da me odma spawna a ne spawn pa traje muzika pa me opet stvori na spawnu i tek onda mogu pocet igrat!

Snich

Citat: [ED]Marac poslato Septembar 21, 2011, 21:56:19 POSLE PODNE
Evo sredio sam spawn samo kad se logiram stavime na moj spawn onda mi ide ona muzika i trebam pricekat 20 30 sekundi i onda me opet baci na spawn kako mogu napravit da me odma spawna a ne spawn pa traje muzika pa me opet stvori na spawnu i tek onda mogu pocet igrat!

Probaj da nadješ ovo: SetPlayerPos(playerid, 2217.2744,-1150.4946,1025.7969);
Ako nadješ to, umjesto ovih koordinata postavi svoje ...
Znaći, brišeš ovo: 2217.2744,-1150.4946,1025.7969
Stavljaš svoje koordinate.

Hvala snich napravio sam tako, opet propadam neznam sta je al jbg svejedeno hvala!

Citat: Emir_Odobasic poslato Septembar 21, 2011, 21:52:39 POSLE PODNE
Evo ja sam uradio i spawna mi se na mjesto koje zelim i nece da mi sliku ucita
evo viditee

http://imageshack.us/photo/my-images/31/samp000sa.png/

postavi da igracu koji se spawna postavi Interior na 0
Vratio sam se ponovo ocekjute novi server...