25.01.2015, 00:45
hey im new her so
i have a problem >>>>
__________________________________________________ _______________________
__________________________my code________________________________________
_____________________DEFINE/INCLUDE__________________________________
i have a problem >>>>
__________________________________________________ _______________________
Код:
.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