[Pomoc]G_ObjectsRot

Započeo Sanel Coralic
29. Nov. 2012. Zaključano
500
pregleda
8
postova
Asmir Hadzic
4
Shot Caller
29. Nov. 2012.
Skripta koju koristim:BCRPGv2
Detaljan opis problema:G_ObjectsRot.inc
Dio skripte:Imam ove errore kako da to fixm da je pawn compiler:
C:\Documents and Settings\Sanelkoooo\Desktop\SanelkoGaming\pawno\include\G_ObjectsRot.inc(10) : error 017: undefined symbol "SERVER_OBJECTS"
C:\Documents and Settings\Sanelkoooo\Desktop\SanelkoGaming\pawno\include\G_ObjectsRot.inc(71) : error 017: undefined symbol "RotateObject"
C:\Documents and Settings\Sanelkoooo\Desktop\SanelkoGaming\pawno\include\G_ObjectsRot.inc(80) : error 017: undefined symbol "RotateObject"
C:\Documents and Settings\Sanelkoooo\Desktop\SanelkoGaming\pawno\include\G_ObjectsRot.inc(80) : error 032: array index out of bounds (variable "open")
C:\Documents and Settings\Sanelkoooo\Desktop\SanelkoGaming\pawno\include\G_ObjectsRot.inc(81) : error 017: undefined symbol "RotateObject"
C:\Documents and Settings\Sanelkoooo\Desktop\SanelkoGaming\pawno\include\G_ObjectsRot.inc(81) : error 017: undefined symbol "RotateObject"
C:\Documents and Settings\Sanelkoooo\Desktop\SanelkoGaming\pawno\include\G_ObjectsRot.inc(81) : error 032: array index out of bounds (variable "open")
C:\Documents and Settings\Sanelkoooo\Desktop\SanelkoGaming\pawno\include\G_ObjectsRot.inc(81) : fatal error 107: too many error messages on one line

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

8 Errors.

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Dat cu vam cjeli moj G_ObjectsRot.inc Sta da trebam da popravim u inc. file ☹️ molim vas pomozite
#include 
#include
#pragma tabsize 0
main()
{
        print("\n----------------------------------");
        print(" Blank Gamemode by your name here");
        print("----------------------------------\n");
}
new bool:open = false;
public OnGameModeInit()
{
        SetGameModeText("Blank Script");
        AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
        CreateObject(5004,1124.458,-2557.726,1.848,0.0,0.0,-180.000);
        CreateObject(5706,1204.238,-2587.184,4.300,0.0,0.0,90.000);
        CreateObject(5706,1204.261,-2545.279,3.700,0.0,0.0,90.000);
        CreateObject(5706,1171.207,-2587.926,4.575,0.0,0.0,90.000);
        CreateObject(5706,1171.226,-2548.168,4.600,0.0,0.0,90.000);
        CreateObject(5706,1139.898,-2592.466,4.525,0.0,0.0,90.000);
        CreateObject(5706,1139.885,-2541.601,4.375,0.0,0.0,90.000);
        CreateObject(5706,1105.367,-2588.885,4.575,0.0,0.0,90.000);
        CreateObject(5706,1105.516,-2542.044,4.175,0.0,0.0,90.000);
        CreateObject(969,1213.362,-2561.887,2.250,0.0,0.0,-90.000);
        CreateObject(966,1181.317,-2564.452,2.083,0.0,0.0,90.000);
        CreateObject(968,1181.324,-2564.428,2.917,0.0,-90.000,90.000);
        CreateObject(969,1149.497,-2575.757,2.250,0.0,0.0,-270.000);
        CreateObject(969,1149.499,-2558.244,2.250,0.0,0.0,-90.000);
        CreateObject(966,1115.511,-2558.384,2.083,0.0,0.0,90.000);
        CreateObject(966,1115.512,-2572.663,2.083,0.0,0.0,-90.000);
        CreateObject(968,1115.532,-2558.347,2.852,0.0,-90.000,90.000);
        CreateObject(968,1115.524,-2572.794,2.842,0.0,-90.000,-90.000);
        CreateObject(969,1194.338,-2561.925,8.425,180.000,0.0,-90.000);
        CreateObject(969,1194.343,-2561.909,2.075,0.0,0.0,-90.000);
        CreateObject(7191,1194.244,-2565.362,10.432,180.000,0.0,0.0);
        CreateObject(7191,1194.298,-2572.476,-9.780,90.618,0.0,0.0);
        CreateObject(7191,1193.760,-2559.568,-9.730,90.618,0.0,0.0);
        CreateObject(968,1075.524,-2557.794,2.842,0.0,-90.000,-90.000);
        return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
        new cmd;
        new idx;
        cmd = strtok(cmdtext, idx);
    if(!strcmp(cmd, "/rotate", true))
    {
                new tmp4;
                tmp4 = strtok(cmdtext, idx);
                new tmp5;
                tmp5 = strtok(cmdtext, idx);
                new tmp6;
                tmp6 = strtok(cmdtext, idx);
                new tmp1;
                tmp1 = strtok(cmdtext, idx);
                new tmp2;
                tmp2 = strtok(cmdtext, idx);
                new tmp3;
                tmp3 = strtok(cmdtext, idx);
                if(!strlen(tmp1)||!strlen(tmp2)||!strlen(tmp3)||!strlen(tmp4)||!strlen(tmp5)||!strlen(tmp6))return SendClientMessage(playerid,0xffffffff,"Use: /rotate ");
                new Float:rot;
                GetObjectRot(strval(tmp4),rot,rot,rot);
                RotateObject(strval(tmp4),rot+floatstr(tmp5),rot+floatstr(tmp6),rot+floatstr(tmp1),strval(tmp2),floatstr(tmp3));
            return 1;
    }
    if(!strcmp(cmd, "/open", true))
    {
                new tmp1;
                tmp1 = strtok(cmdtext, idx);
                if(!strlen(tmp1))return SendClientMessage(playerid,0xffffffff,"Usa: /open [1-5]");
                new Float:rot;
                if(strval(tmp1)==1){GetObjectRot(10,rot,rot,rot);RotateObject(10,rot,rot,rot-90.0,90,50.0);open = true;}
                if(strval(tmp1)==2){GetObjectRot(19,rot,rot,rot);RotateObject(19,rot-90.0,rot,rot,90,50.0);GetObjectRot(20,rot,rot,rot);RotateObject(20,rot+90.0,rot,rot,90,50.0);open = true;open = true;}
                if(strval(tmp1)==3){GetObjectRot(12,rot,rot,rot);RotateObject(12,rot,rot+90.0,rot,90,50.0);open = true;}
                if(strval(tmp1)==4){GetObjectRot(13,rot,rot,rot);RotateObject(13,rot,rot,rot+90.0,90,50.0);GetObjectRot(14,rot,rot,rot);RotateObject(14,rot,rot,rot-90.0,90,50.0);open = true;open = true;}
                if(strval(tmp1)==5){GetObjectRot(17,rot,rot,rot);RotateObject(17,rot,rot+90.0,rot,90,50.0);GetObjectRot(18,rot,rot,rot);RotateObject(18,rot,rot+90.0,rot,90,50.0);open = true;open = true;}
            return 1;
    }
    if(!strcmp(cmd, "/bucle", true))
    {
                new tmp1;
                tmp1 = strtok(cmdtext, idx);
                new tmp2;
                tmp2 = strtok(cmdtext, idx);
                new tmp3;
                tmp3 = strtok(cmdtext, idx);
                new tmp4;
                tmp4 = strtok(cmdtext, idx);
                new tmp5;
                tmp5 = strtok(cmdtext, idx);
                if(!strlen(tmp1)||!strlen(tmp2)||!strlen(tmp3)||!strlen(tmp4)||!strlen(tmp5))return SendClientMessage(playerid,0xffffffff,"Use: /bucle ");
                GenerateBucle(strval(tmp1),floatstr(tmp2),floatstr(tmp3),floatstr(tmp4),floatstr(tmp5));
            return 1;
    }
    if(!strcmp(cmd, "/stopbucle", true))
    {
                new tmp1;
                tmp1 = strtok(cmdtext, idx);
                if(!strlen(tmp1))return SendClientMessage(playerid,0xffffffff,"Usa: /bucle ");
                StopBucle(strval(tmp1));
            return 1;
    }
    return 0;
}
strtok(const string[], &index)
{
        new length = strlen(string);
        while ((index < length) && (string <= ' '))
        {
                index++;
        }

        new offset = index;
        new result;
        while ((index < length) && (string > ' ') && ((index - offset) < (sizeof(result) - 1)))
        {
                result[index - offset] = string;
                index++;
        }
        result[index - offset] = EOS;
        return result;
}
public OnObjectRotated(objectid)
{
        new Float:rot;
        GetObjectRot(objectid,rot,rot,rot);
        if(objectid == 10 && open){SetTimerEx("ReturnObject",1000,0,"dfffdf",10,rot,rot,rot+90.0,90,50.0);}
        if(objectid == 19 && open){SetTimerEx("ReturnObject",1000,0,"dfffdf",19,rot+90.0,rot,rot,90,50.0);}
        if(objectid == 20 && open){SetTimerEx("ReturnObject",1000,0,"dfffdf",20,rot-90.0,rot,rot,90,50.0);}
        if(objectid == 12 && open){SetTimerEx("ReturnObject",1000,0,"dfffdf",12,rot,rot-90.0,rot,90,50.0);}
        if(objectid == 13 && open){SetTimerEx("ReturnObject",1000,0,"dfffdf",13,rot,rot,rot-90.0,90,50.0);}
        if(objectid == 14 && open){SetTimerEx("ReturnObject",1000,0,"dfffdf",14,rot,rot,rot+90.0,90,50.0);}
        if(objectid == 17 && open){SetTimerEx("ReturnObject",1000,0,"dfffdf",17,rot,rot-90.0,rot,90,50.0);}
        if(objectid == 18 && open){SetTimerEx("ReturnObject",1000,0,"dfffdf",18,rot,rot-90.0,rot,90,50.0);}
        return 1;
}
public OnObjectStopRotate(objectid)
{
        return 1;
}
public OnObjectStopBucle(objectid)
{
        return 1;
}
forward ReturnObject(objectid,Float:rotx,Float:roty,Float:rotz,points,Float:speed);
public ReturnObject(objectid,Float:rotx,Float:roty,Float:rotz,points,Float:speed)
{
        open = false;
        RotateObject(objectid,rotx,roty,rotz,points,speed);
        return 1;
}
Blaeks_Biofor
5
Forum Don
29. Nov. 2012.
update server na 0.3e
Asmir Hadzic
4
Shot Caller
29. Nov. 2012.
pa jes 0.3e je ali 0.3e R-2
imal dje skinut 0.3e
announce
samp-server
samp-npc
ali da je 0.3e
ovaj je 0.3e ali r-2
Blaeks_Biofor
5
Forum Don
29. Nov. 2012.
update includove na 0.3e, ako me razumes
Asmir Hadzic
4
Shot Caller
29. Nov. 2012.
kako da update reci mi molim te kako to sve jedan po jedan ali sta
Blaeks_Biofor
5
Forum Don
29. Nov. 2012.
Sanel Coralic wrote on November 29, 2012, 6:31 pm:
kako da update reci mi molim te kako to sve jedan po jedan ali sta
skines najnovije includove , i ubacis ih u pawno>include
Asmir Hadzic
4
Shot Caller
30. Nov. 2012.
mozel li mi neko dati incklude G_ObjectsRot.inc include njegov molim vas da rijesim errore i warrninge molim vas
Blaeks_Biofor
5
Forum Don
30. Nov. 2012.
brate, jel je toliko tesko da koristis gugl? http://forum.sa-mp.com/showthread.php?t=151452

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha