Door move , COmpiler crash
#1

Wen y finish my script the Compiler make this.


Look at my script :
pawn Код:
//new CarAutolock[999];
//new cartrack[256];
//new street_zone;
new GangCar[MAX_PLAYERS];
new tactical[MAX_PLAYERS];
new authorizetactical;
//new surenos;
//new black_yakuza;
//new nortenos;
//new jefferson_saints;
new obj;
pawn Код:
public OnGameModeInit()
{
    obj = CreateObject(969,1525.21911621,-1607.69079590,12.38281250,0.00000000,0.00000000,0.00000000);
    return 1;
}
    new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
    for(new c=0;c<CAR_AMOUNT;c++)
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/moveobject", true) == 0)
    {
    new string[50];
    new movetime = MoveObject(obj,1523.5331,-1611.8778,13.5469,2.00);
    format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
        SendClientMessage(playerid, 0xFF000000, string);
        return 1;
    }
    return 0;
}
Reply
#2

Код:
public OnGameModeInit()
{
    obj = CreateObject(969,1525.21911621,-1607.69079590,12.38281250,0.00000000,0.00000000,0.00000000);
    return 1;
}
    new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
    for(new c=0;c<CAR_AMOUNT;c++)
Them 3 lines should'nt be under GameModeInit() for a start.
Reply
#3

pawn Код:
public OnGameModeInit()
{
    obj = CreateObject(969,1525.21911621,-1607.69079590,12.38281250,0.00000000,0.00000000,0.00000000);
    return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/moveobject", true) == 0)
    {
       new string[50];
       new movetime = MoveObject(obj,1523.5331,-1611.8778,13.5469,2.00);
       format(string, sizeof(string), "Object will finish moving in %d milliseconds", movetime);
       SendClientMessage(playerid, 0xFF000000, string);
       return 1;
    }
    return 0;
}
Reply
#4

No That Dosen't work, i use GM LARP
Reply
#5

In an other topic you made you said you where using NL-RP o_O?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)