[POMOC]Erori i spawn

Započeo |OY:RP| James, Mart 10, 2013, 01:42:43 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GTARP
Detaljan opis problema:baca mi eror i jos jedan problem kako da nadjem spawn kordinate i da stavim ja svoje kordinate dase tu spawnam znaci da promenim spawn,hvala unapred
dio scripte:
Erori koji mi bacaju

(51) : warning 219: local variable "count" shadows a variable at a preceding level
(11379) : error 001: expected token: ";", but found "-identifier-"
(44060) : warning 204: symbol is assigned a value that is never used: "sss"
(44137) : warning 204: symbol is assigned a value that is never used: "sss"
(60663) : warning 203: symbol is never used: "lol"

1 Error.


Linija 51

#define DIALOG_EVENT   1093


Linija 11379

    TextDrawHideForPlayer(playerid, login0);


Linija 44060

sss = 0;


Linija 44137

sss = 0;


Linija 60663 ova je na kraj moda skroz zadnja

}




EV SAD SPAWN SETPLAYERSPAWN

setplayerspawn

public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {

     if(PlayerInfo[playerid][pTut] == 0)
     {
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "{FFFFFF}Dobrodosli na {004CFF}United Balkan RPG/DM {FFFFFF}server, molimo popunite par informacijskih pitanja.");
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT,"{FFFFFF}Kojeg ste spola?", "{FFFFFF}U prazan prostor napisite {004CFF}musko {FFFFFF}ili {004CFF}zensko", "U redu", "Odustani");
     }
new rand;
new house = PlayerInfo[playerid][pPhousekey];
if(PlayerPaintballing[playerid] != 0)
{
    ResetPlayerWeapons(playerid);
      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)
{
            new randd = random(sizeof(Celije));
    SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,Celije[randd][0], Celije[randd][1], Celije[randd][2]);
TextDrawShowForPlayer(playerid, Jailtime);
//SendClientMessage(playerid, COLOR_LIGHTRED, "Nedovrsena zatvorska kazna, natrag u zatvor.");
return 1;
}
if(PlayerInfo[playerid][pTamnica] == 1)
{
    SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1794.6628,-1543.8092,2913.9067);
TextDrawShowForPlayer(playerid, Tamnica);
SetPlayerSkin(playerid, 162);
SendClientMessage(playerid, COLOR_LIGHTRED, "ERROR: Ovdje ste jer niste postivali pravila servera.");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
    SetPlayerInterior(playerid, 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(PlayerInfo[playerid][pProveraSpawna] == 1 && PlayerInfo[playerid][pPosedovanjeKuce] != -1)
{
          new is = PlayerInfo[playerid][pPosedovanjeKuce];
      SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0);
  SetPlayerPos(playerid, KucaInfo[is][kUlazX], KucaInfo[is][kUlazY], KucaInfo[is][kUlazZ]);
}
if(PlayerInfo[playerid][pProveraSpawna] == 2)
{
  new id = PlayerInfo[playerid][pRent];
      SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0);
  SetPlayerPos(playerid, KucaInfo[id][kUlazX], KucaInfo[id][kUlazY], KucaInfo[id][kUlazZ]);
}
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0 && PlayerInfo[playerid][pTamnica] == 0)
{
MedicBill[playerid] = 0;
MedicTime[playerid] = 0;
NeedMedicTime[playerid] = 0;
//PlayerInfo[playerid][pDeaths] += 1;
SetPlayerHealthEx(playerid, 100.0);
    /*SetPlayerInterior(playerid, 5);
        rand = random(sizeof(gMedicSpawns));
SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
        TogglePlayerControllable(playerid, 0);
        GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~y~You are recovering from your ~r~wounds~y~...", 35000, 3);
        MedicTime[playerid] = 1;
        if(PlayerInfo[playerid][pAdrenalins] > 0)
        {
            NeedMedicTime[playerid] = 30;
        }
        else
        {
        NeedMedicTime[playerid] = 60;
}
        PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
    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]);
SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
PlayerInfo[playerid][pLocal] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Ballas Spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 2232.7178,-1159.8024,29.7969);
    SetPlayerFacingAngle(playerid, 91.0933);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//PD spawn
{
SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 6);
    SetPlayerPos(playerid, 240.1379,73.6672,1005.0391);
    SetPlayerFacingAngle(playerid, 1.0935);
PlayerInfo[playerid][pInt] = 6;
SetPlayerHealthEx(playerid, 100.0);
return 1;
}
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3) //SR spawn
     {
        SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 299.7097,183.1322,1007.1719);
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
        return 1;
         }
         if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Azteces Spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 2);
    SetPlayerPos(playerid, 2452.1743,-1704.5798,1013.5078);
    SetPlayerFacingAngle(playerid, 91.0933);
    PlayerInfo[playerid][pInt] = 2;
    return 1;
}
         if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //Vagos spawn
     {
        SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 2261.1641,-1222.1663,1049.0234);
SetPlayerInterior(playerid, 10);
PlayerInfo[playerid][pInt] = 10;
        return 1;
         }
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//LCN SPAWN
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 12);
    SetPlayerPos(playerid, 2312.7639,-1146.5990,1050.7031);
    SetPlayerFacingAngle(playerid, 274.1163);
    PlayerInfo[playerid][pInt] = 12;
    return 1;
}
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//GSF Spawn
{
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 2488.3635,-1691.4453,14.7656);
    SetPlayerFacingAngle(playerid, 358.9012);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
}
     if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
     {
        SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 2818.5439,-1168.9069,1029.1719);
SetPlayerFacingAngle(playerid, 92.1895);
SetPlayerInterior(playerid, 8);
PlayerInfo[playerid][pInt] = 8;
        return 1;
     }
     if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //CNN
     {
        SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 734.0886,-1355.4124,15.1563);
SetPlayerFacingAngle(playerid, 271.7225);
        return 1;
     }
     if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //YAKUZA SPAWN
     {
        SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, -2164.9497,646.1156,1057.5938);
SetPlayerFacingAngle(playerid, 182.3370);
SetPlayerInterior(playerid, 1);
PlayerInfo[playerid][pInt] = 1;
        return 1;
}
if(PlayerInfo[playerid][pJob] == 14)
  {
    SetPlayerPos(playerid,970.0876,-1521.4962,13.5520);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
    }
    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);
if(PlayerInfo[playerid][pOrigin] == 1)//
{
    SetPlayerPos(playerid,1221.0874,-1814.1420,16.5938);
SetPlayerFacingAngle(playerid, 176.5768);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerInfo[playerid][pOrigin] == 2)//
{
    SetPlayerPos(playerid,1221.0874,-1814.1420,16.5938);
SetPlayerFacingAngle(playerid, 176.5768);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerInfo[playerid][pOrigin] == 3)//
{
    SetPlayerPos(playerid,1221.0874,-1814.1420,16.5938);
SetPlayerFacingAngle(playerid, 176.5768);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerInfo[playerid][pOrigin] == 4)//
{
    SetPlayerPos(playerid,1221.0874,-1814.1420,16.5938);
SetPlayerFacingAngle(playerid, 176.5768);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerInfo[playerid][pOrigin] == 5)//srbija
{
    SetPlayerPos(playerid,1221.0874,-1814.1420,16.5938);
SetPlayerFacingAngle(playerid, 176.5768);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerInfo[playerid][pOrigin] == 6)//srbija
{
    SetPlayerPos(playerid,1221.0874,-1814.1420,16.5938);
SetPlayerFacingAngle(playerid, 176.5768);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else
{
rand = random(sizeof(gRandomPlayerSpawns));
SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,15);
PlayerInfo[playerid][pInt] = 15;
}

return 1;
}
}
KillTimer(TAFK[playerid]);
         KillTimer(Tout[playerid]);
         TAFK[playerid] = SetTimerEx("AFK", TIME, 1, "i", playerid);
}
}
return 1;
}





slike:

OLD YEARS ROLEPLAY ||TRAILER: http://www.youtube.com/watch?v=taUoUNkqXLA



(51) : warning 219: local variable "count" shadows a variable at a preceding level
- Daj mi liniju iznad i ispod

(11379) : error 001: expected token: ";", but found "-identifier-"
- Daj liniju iznad

(44060) : warning 204: symbol is assigned a value that is never used: "sss"
- Obrisi tu liniju

(44137) : warning 204: symbol is assigned a value that is never used: "sss"
- Obrisi tu liniju

(60663) : warning 203: symbol is never used: "lol"
- CTRL+F i kucaj new lol; i to obrisi.





Ovo ti je spawn. Ta cetiri promeni

if(PlayerInfo[playerid][pOrigin] == 1)//
{
    SetPlayerPos(playerid,1221.0874,-1814.1420,16.5938);
SetPlayerFacingAngle(playerid, 176.5768);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerInfo[playerid][pOrigin] == 2)//
{
    SetPlayerPos(playerid,1221.0874,-1814.1420,16.5938);
SetPlayerFacingAngle(playerid, 176.5768);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerInfo[playerid][pOrigin] == 3)//
{
    SetPlayerPos(playerid,1221.0874,-1814.1420,16.5938);
SetPlayerFacingAngle(playerid, 176.5768);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerInfo[playerid][pOrigin] == 4)//
{
    SetPlayerPos(playerid,1221.0874,-1814.1420,16.5938);
SetPlayerFacingAngle(playerid, 176.5768);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerInfo[playerid][pOrigin] == 5)//srbija
{
    SetPlayerPos(playerid,1221.0874,-1814.1420,16.5938);
SetPlayerFacingAngle(playerid, 176.5768);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerInfo[playerid][pOrigin] == 6)//srbija
{
    SetPlayerPos(playerid,1221.0874,-1814.1420,16.5938);
SetPlayerFacingAngle(playerid, 176.5768);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}

51

#define MAX_BIZZES 30
#define DIALOG_EVENT   1093
#define EVENT_FILE      "Events/%d.ini"

11379

public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, Poruke);
    TextDrawShowForPlayer(playerid, Logotx0);
    TextDrawShowForPlayer(playerid, Logotx5);
    TextDrawShowForPlayer(playerid, Logotx6);
    TextDrawShowForPlayer(playerid, Logotx7);
    TextDrawShowForPlayer(playerid, Logotx8);
    TextDrawShowForPlayer(playerid, Logotx12);
    TextDrawShowForPlayer(playerid, Logotx13)
//------------------------------------------------------------------------------
    TextDrawHideForPlayer(playerid, login0);
    TextDrawHideForPlayer(playerid, login1);
    TextDrawHideForPlayer(playerid, login2);
    TextDrawHideForPlayer(playerid, login3);
    TextDrawHideForPlayer(playerid, login4);
    TextDrawHideForPlayer(playerid, login5);
    TextDrawHideForPlayer(playerid, login6);
    TextDrawHideForPlayer(playerid, login7);
    TextDrawHideForPlayer(playerid, login8);
//------------------------------------------------------------------------------
InitLockDoors(playerid);
STDPlayer[playerid] = 0;
if(IsPlayerNPC(playerid)) return 1;




e a ovo za sss ima ih jos mnogo kad obrisem to jel sve da brisem sve ima kod cretehouse sve kod kuca tih nesto house
ima ih jos mnogo to sve sss jel sve da brisem a ovo lol stosam obriso radi ne baca vise

OLD YEARS ROLEPLAY ||TRAILER: http://www.youtube.com/watch?v=taUoUNkqXLA

Da, sve to "sss" briši.

Aj kucaj "count" pa mi daj ovde sta nadjes.

public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, Poruke);
    TextDrawShowForPlayer(playerid, Logotx0);
    TextDrawShowForPlayer(playerid, Logotx5);
    TextDrawShowForPlayer(playerid, Logotx6);
    TextDrawShowForPlayer(playerid, Logotx7);
    TextDrawShowForPlayer(playerid, Logotx8);
    TextDrawShowForPlayer(playerid, Logotx12);
    TextDrawShowForPlayer(playerid, Logotx13);
//------------------------------------------------------------------------------
    TextDrawHideForPlayer(playerid, login0);
    TextDrawHideForPlayer(playerid, login1);
    TextDrawHideForPlayer(playerid, login2);
    TextDrawHideForPlayer(playerid, login3);
    TextDrawHideForPlayer(playerid, login4);
    TextDrawHideForPlayer(playerid, login5);
    TextDrawHideForPlayer(playerid, login6);
    TextDrawHideForPlayer(playerid, login7);
    TextDrawHideForPlayer(playerid, login8);
//------------------------------------------------------------------------------
InitLockDoors(playerid);
STDPlayer[playerid] = 0;
if(IsPlayerNPC(playerid)) return 1;

SVE COUNTTT

new countdown = -1;
new countpokrecen;



new countpro=0;
new counttimer;




forward CountDown();
forward count();




new Text:CountTextdraw;
new Text:count3;



forward ct();
public ct()
{
        countdown--;
        new str[32];
        format(str,32,"~w~%d",countdown);
        GameTextForAll(str,1000,6);
        if(countdown == 0){
        GameTextForAll("~r~GO! GO! GO!",2000,6);
        KillTimer(timerr);}
        return 1;
}

public GOGOGO()
{
TextDrawHideForAll(count3);
return 1;
}



et

OLD YEARS ROLEPLAY ||TRAILER: http://www.youtube.com/watch?v=taUoUNkqXLA