Posts: 191
Threads: 45
Joined: Aug 2013
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");
}
Posts: 191
Threads: 45
Joined: Aug 2013
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
Linha 2878
pawn Код:
new Info[MAX_PLAYERS][a];
Posts: 1,800
Threads: 67
Joined: Feb 2013
Reputation:
0
Na linha 5699 faltou um comparativo... um ==, ou !=, um < ou >. Vocк quer verificar o que com esse if ?
Posts: 191
Threads: 45
Joined: Aug 2013
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;
}