Jump to content
  • 0

pomoc Registrace y_ini


Sathy

Dotaz

Ahojte hoš mam udělané ukládaní dat přes y_ini, ale hází mi to tyto errory:

 

C:\TOP SECRET\Trollz\Honza\Samp Server\filterscripts\sadmin.pwn(247) : error 035: argument type mismatch (argument 1)
C:\TOP SECRET\Trollz\Honza\Samp Server\filterscripts\sadmin.pwn(249) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664     Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

 

Toto jsou řádky:

 

if(fexist(Path(playerid))
{
 INI_ParseFile(Path(playerid),"loadadata_admin", .bExtra = true, .extra = playerid);

 

Budu vděčný za jakoukoli radu.

Link to comment
Share on other sites

8 odpovědí na tuto otázku

Recommended Posts

  • 0

daj sem ten stock Path

 

stock Path(playerid)
{
new str[129], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), UserPath, name);
}

 

a tu je public:

forward loadadata_admin(playerid, name[], value[]);
public loadadata_admin(playerid, name[], value[])
{
INI_String("Heslo", aInfo[playerid][Heslo], 129);
INI_Int("ALevel", aInfo[playerid][aLevel]);
return 1;
}

Link to comment
Share on other sites

  • 0

stock Path(playerid)

{

new str[129], name[MAX_PLAYER_NAME];

GetPlayerName(playerid, name, sizeof(name));

format(str, sizeof(str), UserPath, name);

return str;

}

 

Díky moc.. já sem tak slepý :d

Link to comment
Share on other sites

  • 0

praveže ne to %s si vybera jednotlivo

 

No spousta lidí si na samp forku na to stěžovalo takže radši to nechám tak jak mám. Stačilo přidat ten return :d Ještě jednou díky QWER ;)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...