29.06.2012, 21:30
hey i have been trying to get a money saving system for cops and robbers script by stevo but wont save the money please help
enum pInfo
{
pCash(playerid)(pCash);
}
new PlayerInfo[MAX_PLAYERS][pInfo];
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Cash",PlayerInfo[playerid][pCash]);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",PlayerInfo[playerid][pCash]);
INI_Close(File);
return 1;
}
C:\Users\Elvis Valentin\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(58) : error 001: expected token: "}", but found "("
C:\Users\Elvis Valentin\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(66) : error 017: undefined symbol "INI_Int"
C:\Users\Elvis Valentin\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(600) : warning 201: redefinition of constant/macro (symbol "pInfo")
C:\Users\Elvis Valentin\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(603) : error 021: symbol already defined: "PlayerInfo"
C:\Users\Elvis Valentin\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(2423) : warning 225: unreachable code
C:\Users\Elvis Valentin\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(2423) : error 017: undefined symbol "INI_Open"
C:\Users\Elvis Valentin\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(2423) : warning 213: tag mismatch
C:\Users\Elvis Valentin\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(2424) : error 017: undefined symbol "INI_SetTag"
C:\Users\Elvis Valentin\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(2425) : error 017: undefined symbol "INI_WriteInt"
C:\Users\Elvis Valentin\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(2426) : error 017: undefined symbol "INI_Close"
C:\Users\Elvis Valentin\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(2423) : warning 204: symbol is assigned a value that is never used: "File"
C:\Users\Elvis Valentin\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(4732) : warning 202: number of arguments does not match definition
C:\Users\Elvis Valentin\Desktop\SFCRRPG\gamemodes\SFCRRPG.pwn(4732) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
dUserSetINT(PlayerName(playerid)).("SavedJailTime" ,SavedJailTime[playerid]); |
#include <YSI\y_ini>