10.04.2017, 11:06
Код:
#include <y_ini>
Код:
enum PlayerInfo { SCORE, MONEY, KILLS, DEATHS, SKIN };
Код:
public OnPlayerDisconnect(playerid, reason) { new name[MAX_PLAYER_NAME],ini[126]; GetPlayerName(playerid, name, sizeof(name)); format(ini,sizeof(ini),"%s.ini",name); new fileToWrite[] = ini; INI:iniFile = INI_Open(fileToWrite); INI_SetTag(iniFile, "UserData"); INI_WriteInt(iniFile, "some_integer", 42); return 1; }
Код:
D:\GTA San Andreas \Server\pawno\include\y_ini.inc(1050) : warning 202: number of arguments does not match definition D:\GTA San Andreas \Server\gamemodes\cdm.pwn(78) : error 008: must be a constant expression; assumed zero D:\GTA San Andreas \Server\gamemodes\cdm.pwn(78) : error 036: empty statement D:\GTA San Andreas \Server\gamemodes\cdm.pwn(80) : warning 221: label name "INI" shadows tag name D:\GTA San Andreas \Server\gamemodes\cdm.pwn(80) : error 017: undefined symbol "iniFile" D:\GTA San Andreas \Server\gamemodes\cdm.pwn(80) : error 017: undefined symbol "fileToWrite" D:\GTA San Andreas \Server\gamemodes\cdm.pwn(81) : error 017: undefined symbol "iniFile" D:\GTA San Andreas \Server\gamemodes\cdm.pwn(82) : error 017: undefined symbol "iniFile" D:\GTA San Andreas \Server\gamemodes\cdm.pwn(80) : warning 203: symbol is never used: "INI" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.