C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(163) : error 055: start of function body without function header
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(167) : error 010: invalid function or declaration
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(905) : error 055: start of function body without function header
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(906) : error 010: invalid function or declaration
163 a 167: {
SetTimerEx("Timer",1000,true,"i",playerid);
}
{
if(dini_Isset("levels.dkn",PlayerName(playerid)) Level[playerid] = (playerid,dini_Int("levels.dkn",PlayerName(palyerid)));
905 a 907: {
if(!fexist("levels.dkn")) dini_Create("levels.dkn");
}
Originally Posted by [NNF
Minds. ]
A sua include tem que estar na pasta ".../pawno/includes", nгo pode estar na "/includes (do sa-mp server)." |
Originally Posted by Luuks
linhas:
pawn Код:
|
163 a 167: {
SetTimerEx("Timer",1000,true,"i",playerid);
}
if(dini_Isset("levels.dkn",PlayerName(playerid)) {Level[playerid] = (playerid,dini_Int("levels.dkn",PlayerName(palyerid)));}
else {
if(!fexist("levels.dkn")) dini_Create("levels.dkn");
}
public OnPlayerConnect(playerid)
{
SetTimerEx("Timer",1000,true,"i",playerid);
}
{
if(dini_Isset("levels.dkn",PlayerName(playerid)) Level[playerid] = (playerid,dini_Int("levels.dkn",PlayerName(palyerid)));}
}
public Timer(playerid)
{
Respeito[playerid]++;
SendClientMessage(playerid,0x33AA33AA,"Parabens Vocк Aumentou seu Respeito Mais um Pouco Vocк Upa o Level");
if(Respeito[playerid] == 5)
{
Level[playerid]++;
SendClientMessage(playerid,0x33AA33AA,"Parabens Vocк Upou um Level!");
Respeito[playerid] = 0;
}
return 1;
}
stock PlayerName(playerid)
{
new PlayerNameLevel[MAX_PLAYERS];
GetPlayerName(playerid, PlayerNameLevel, MAX_PLAYERS);
return PlayerNameLevel;
}
Em OnGameModInit
{
if(!fexist("levels.dkn")) dini_Create("levels.dkn");
}
Em OnPlayerConnect
public OnPlayerConnect(playerid)
{
SetTimerEx("Timer",1000,true,"i",playerid);
}
{
if(dini_Isset("levels.dkn",PlayerName(playerid)) Level[playerid] = (playerid,dini_Int("levels.dkn",PlayerName(palyerid)));}
}
Final do GM;
stock PlayerName(playerid)
{
new PlayerNameLevel[MAX_PLAYERS];
GetPlayerName(playerid, PlayerNameLevel, MAX_PLAYERS);
return PlayerNameLevel;
}
#include <a_samp>
#include <Dini>
forward Timer(playerid);
new Level[MAX_PLAYERS],Respeito[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
SetTimerEx("Timer",1000,true,"i",playerid);
if(dini_Isset("levels.dkn",PlayerName(playerid))) Level[playerid] = dini_Int("levels.dkn",PlayerName(playerid));
else dini_IntSet("levels.dkn",PlayerName(playerid),0);
return 1;
}
public OnGameModeInit()
{
if(!fexist("levels.dkn")) dini_Create("levels.dkn");
return 1;
}
public Timer(playerid)
{
Respeito[playerid]++;
SendClientMessage(playerid,0x33AA33AA,"Parabens Vocк Aumentou seu Respeito Mais um Pouco Vocк Upa o Level");
if(Respeito[playerid] == 5)
{
Level[playerid]++;
SendClientMessage(playerid,0x33AA33AA,"Parabens Vocк Upou um Level!");
Respeito[playerid] = 0;
}
return 1;
}
public OnPlayerDisconnect(playerid,reason)
{
dini_IntSet("levels.dkn",PlayerName(playerid),Level[playerid]);
return 1;
}
stock PlayerName(playerid)
{
new PlayerNameLevel[MAX_PLAYERS];
GetPlayerName(playerid, PlayerNameLevel, MAX_PLAYERS);
return PlayerNameLevel;
}
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(161) : error 055: start of function body without function header
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(163) : error 010: invalid function or declaration
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(164) : error 010: invalid function or declaration
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(165) : error 010: invalid function or declaration
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(173) : error 055: start of function body without function header
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(174) : error 021: symbol already defined: "dini_IntSet"
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(174) : error 010: invalid function or declaration
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(174 -- 175) : error 010: invalid function or declaration
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(174 -- 175) : fatal error 107: too many error messages on one line
public OnPlayerConnect(playerid)
{
SetTimerEx("Timer",600000,true,"i",playerid);
if(dini_Isset("levels.dkn",PlayerName(playerid)) {Level[playerid] = (playerid,dini_Int("levels.dkn",PlayerName(playerid)));}
return 1;
}
public Timer(playerid)
{
Respeito[playerid]++;
SendClientMessage(playerid,0x33AA33AA,"Parabens Vocк Aumentou seu Respeito Mais um Pouco Vocк Upa o Level");
if(Respeito[playerid] == 5)
{
Level[playerid]++;
dini_IntSet("levels.dkn",PlayerName(playerid),Level[playerid]);
SendClientMessage(playerid,0x33AA33AA,"Parabens Vocк Upou um Level!");
Respeito[playerid] = 0;
}
return 1;
}
stock PlayerName(playerid)
{
new PlayerNameLevel[25];
GetPlayerName(playerid, PlayerNameLevel, 25);
return PlayerNameLevel;
}
Em OnGameModInit
{
if(!fexist("levels.dkn")) {new File:Ne=fopen("levels.dkn",io_write);fclose(Ne);}
}
161 б 164 {
SetTimerEx("Timer",600000,true,"i",playerid);
if(dini_Isset("levels.dkn",PlayerName(playerid)) {Level[playerid] = (playerid,dini_Int("levels.dkn",PlayerName(playerid)));}
return 1;
172 a 173 {
dini_IntSet("levels.dkn",PlayerName(playerid),Level[playerid]);
return 1;
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(161) : error 055: start of function body without function header
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(163) : error 010: invalid function or declaration
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(164) : error 010: invalid function or declaration
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(172) : error 055: start of function body without function header
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(173) : error 021: symbol already defined: "dini_IntSet"
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(173) : error 017: undefined symbol "playerid"
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(173) : error 010: invalid function or declaration
C:\DOCUME~1\LUCASA~1\MEUSDO~1\Pawn\GAMEMO~1\lvdm.pwn(173 -- 174) : fatal error 107: too many error messages on one line