.pwn(16) : warning 201: redefinition of constant/macro (symbol "MAX_INI_ENTRY_TEXT") .pwn(65) : error 029: invalid expression, assumed zero .pwn(65) : error 017: undefined symbol "Accounts" .pwn(65) : error 017: undefined symbol "s" .pwn(65) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
//49>> public LoadUser_data(playerid,name[],value[]) { INI_Int("Password",PlayerInfo[playerid][pPass]); INI_Int("Cash",PlayerInfo[playerid][pCash]); INI_Int("Admin",PlayerInfo[playerid][pAdmin]); INI_Int("Score",PlayerInfo[playerid][pScore]); INI_Int("Bankmoney",PlayerInfo[playerid][pBankmoney]); INI_Int("Banned",PlayerInfo[playerid][pBanned]); return 1; } //ligne61>> stock UserPath(playerid) //ligne62>> { //ligne63>> new string[265],playername[MAX_PLAYER_NAME]; //ligne64>> GetPlayerName(playerid,playername,sizeof(playername)); //ligne65>> format(string,sizeof(string),PATH,playername); //ligne66>> return string; //ligne67>> } stock udb_hash(buf[]) { new length=strlen(buf); new s1 = 1; new s2 = 0; new n; for (n=0; n<length; n++) { s1 = (s1 + buf[n]) % 65521; s2 = (s2 + s1) % 65521; } return (s2 << 16) + s1; }
#define FILTERSCRIPT #include <a_samp> #include <a_players> #include <file> #include <YSI\y_ini> //#include <sscanf> #include <sscanf2> #define MAX_INI_ENTRY_TEXT 160 #define DIALOG_REGISTER 1 #define DIALOG_LOGIN 2 #define DIALOG_SUCCESS_1 3 #define DIALOG_SUCCESS_2 4 #define PATH ~/Accounts/%s.ini #define COLOR_WHITE "(FFFFFF)" #define COLOR_RED "(F81414)" #define COLOR_GREEN "(00FF22)" #define COLOR_LIGHTBLUE "(00CED1)" #if defined FILTERSCRIPT #include <time> #pragma tabsize 0
#define PATH "/Accounts/%s.ini" |
.pwn(115) : warning 202: number of arguments does not match definition .pwn(115) : warning 202: number of arguments does not match definition .pwn(154) : error 001: expected token: ")", but found "{" .pwn(155) : error 017: undefined symbol "playyerid" .pwn(170) : error 017: undefined symbol "Userpath" .pwn(173) : error 017: undefined symbol "Playerinfo" .pwn(173) : warning 215: expression has no effect .pwn(173) : error 001: expected token: ";", but found "]" .pwn(173) : error 029: invalid expression, assumed zero .pwn(173) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Errors.
.pwn(18) : warning 201: redefinition of constant/macro (symbol "MAX_INI_ENTRY_TEXT") .pwn(115) : warning 202: number of arguments does not match definition .pwn(115) : warning 202: number of arguments does not match definition .pwn(115) : warning 202: number of arguments does not match definition .pwn(115) : warning 202: number of arguments does not match definition .pwn(170) : error 017: undefined symbol "Userpath" .pwn(173) : error 017: undefined symbol "Playerinfo" .pwn(173) : warning 215: expression has no effect .pwn(173) : error 001: expected token: ";", but found "]" .pwn(173) : error 029: invalid expression, assumed zero .pwn(173) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
//167>> public OnPlayerDisconnect(playerid, reason) //168>> { //169>> plc--; //170>> new INI:File = INI_Open(Userpath(playerid)); //171>> INI_SetTag(File,"data"); //172>> INI_WriteInt(File,"Cash",GetPlayerMoney(playerid)); //173>> INI_WriteInt(File,"Admin",Playerinfo[playerid][pAdmin]); //174>> INI_WriteInt(File,"Score",Playerinfo[playerid][pScore]); //175>> INI_WriteInt(File,"Bankmoney",Playerinfo[playerid][pBankmoney]); //176>> INI_WriteInt(File,"Banned",Playerinfo[playerid][pBanned]); //177>> INI_Close(File); //178>> return 1; //179>> }
the plugin is called sscanf, the include sscanf2.
edit your server.cfg -> plugins -> change sscanf2 to sscanf. |
main () { }
public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" cops and robbers"); print("----------------------------------\n"); } #endif