11.07.2011, 21:32
Eai povo, Tipo eu to querendo que quando o player fique procurado ele relogue e continue com o nнvel de procurado, tentei por aqui mas nгo deu certo se souberem e poder me ajduar ai valeu .
public OnPlayerDisconnect(playerid, reason)
{
new str[50];
GetPlayerName(playerid, str, 24);
format(str, sizeof str, "/Jogadores/%s.txt", str);
if(!fexist(str)) { dini_Create(str); }
dini_IntSet(str, "Nivel de Procurado", GetPlayerWantedLevel(playerid));
return 1;
}
public OnPlayerConnect(playerid)
{
new str[50];
GetPlayerName(playerid, str, 24);
format(str, sizeof str, "/Jogadores/%s.txt", str);
if(fexist(str)) { SetPlayerWantedLevel(playerid, dini_Int(str, "Nivel de Procurado")); }
return 1;
}
Gm.pwn(13441) : error 055: start of function body without function header
Gm.pwn(13443) : error 021: symbol already defined: "GetPlayerName"
Gm.pwn(13445) : error 010: invalid function or declaration
Gm.pwn(13446) : error 010: invalid function or declaration
Gm.pwn(14698) : error 055: start of function body without function header
Gm.pwn(14699) : error 021: symbol already defined: "str"
Gm.pwn(14702) : error 010: invalid function or declaration
Gm.pwn(14703) : error 021: symbol already defined: "dini_IntSet"
Gm.pwn(14703) : error 010: invalid function or declaration
Gm.pwn(14703 -- 14704) : error 010: invalid function or declaration
Gm.pwn(14703 -- 14704) : fatal error 107: too many error messages on one line
{
new str[50];
GetPlayerName(playerid, str, 24);
format(str, sizeof str, "/Jogadores/%s.txt", str);
if(fexist(str)) { SetPlayerWantedLevel(playerid, dini_Int(str, "Nivel de Procurado")); }
return 1;
{
new str[50];
GetPlayerName(playerid, str, 24);
format(str, sizeof str, "/Jogadores/%s.txt", str);
if(!fexist(str)) { dini_Create(str); }
dini_IntSet(str, "Nivel de Procurado", GetPlayerWantedLevel(playerid));
return 1;
#include <Dini>