[Ajuda] sistema de carro
#1

bem,reparem nesse code
pawn Код:
if(!fexist("cars.txt"))
{
dini_Create("cars.txt");
}
Tou tentando implementar isso no gm,mas claro que reparei que isso й de filterscript,agora й a parte que nгo sei,como transformo esse code pra gamemode? nгo seria assim?

pawn Код:
if(!gmexist("cars.txt"))
{
dini_Create("cars.txt");
}
Reply
#2

pawn Код:
gmexist
Reply
#3

usa na mesma assim no GM

pawn Код:
if(!fexist("cars.txt"))
{
    dini_Create("cars.txt");
}
Reply
#4

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
pawn Код:
gmexist
Acho que ele usou a lуgica de:

Fexists = para Filterscrpit
GMexists = para Game Mode
Reply
#5

pawn Код:
C:\Users\Joгo\Desktop\CC-\gamemodes\GM.pwn(2878) : error 021: symbol already defined: "Info"
C:\Users\Joгo\Desktop\CC-\gamemodes\GM.pwn(5699) : error 028: invalid subscript (not an array or too many subscripts): "Info"
C:\Users\Joгo\Desktop\CC-\gamemodes\GM.pwn(5699) : warning 215: expression has no effect
C:\Users\Joгo\Desktop\CC-\gamemodes\GM.pwn(5699) : error 001: expected token: ";", but found "]"
C:\Users\Joгo\Desktop\CC-\gamemodes\GM.pwn(5699) : error 029: invalid expression, assumed zero
C:\Users\Joгo\Desktop\CC-\gamemodes\GM.pwn(5699) : fatal error 107: too many error messages on one line

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


5 Errors.
Linha5699
pawn Код:
if(Info[i][Carros])
Linha 2878
pawn Код:
new Info[MAX_PLAYERS][a];
Reply
#6

Na linha 5699 faltou um comparativo... um ==, ou !=, um < ou >. Vocк quer verificar o que com esse if ?
Reply
#7

eu tinha assim,no filterscript e nao dava erro nenhum
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(Info[i][Carros]) { RemovePlayerAttachedObject(i, 0); }
    }
isto й o que ta no gm
pawn Код:
public OnGameModeExit()
{
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i))
        {
            StopPlayerHoldingObject(i);
        }
        if(Info[i][Carros])
        {
        RemovePlayerAttachedObject(i, 0);
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)