I NEED HELP
#1

hey im new her so
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.
__________________________my code________________________________________
Код:
//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/INCLUDE__________________________________
Код:
#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
Reply
#2

Quote:

#define PATH "/Accounts/%s.ini"

Try this
Reply
#3

didn't work
Код:
.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.
__________________________________________________ __________________________________________

after i reperd other 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.
script
Код:
//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>>                  }
Reply
#4

Quote:
Originally Posted by Mic_H
Посмотреть сообщение
Try this
tnx and help plzz
Reply
#5

hey i fixed script an am geting GAMEMODE UNKNOWN
and look in the console
plzz help


__________________________________________________ ________________
Reply
#6

the plugin is called sscanf, the include sscanf2.

edit your server.cfg -> plugins -> change sscanf2 to sscanf.
Reply
#7

Quote:
Originally Posted by Smileys
Посмотреть сообщение
the plugin is called sscanf, the include sscanf2.

edit your server.cfg -> plugins -> change sscanf2 to sscanf.
no not working
Reply
#8

Add this in your script

pawn Код:
main () { }
Reply
#9

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
Add this in your script

pawn Код:
main () { }
where exactly sir
Reply
#10

Quote:
Originally Posted by ayoub001
Посмотреть сообщение
where exactly sir
Код:
public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" cops and robbers");
	print("----------------------------------\n");
}

#endif
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)