Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Having Problem With y_ini

$
0
0
Code:

#include <y_ini>
Code:

enum
        PlayerInfo
{
        SCORE,
        MONEY,
        KILLS,
        DEATHS,
        SKIN
};

Code:

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;
}

That gives
Code:

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 (c) 1997-2006, ITB CompuPhase


6 Errors.

where is the problem :/

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>