Command BAN - Help
#1

Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\pawno\include\YSI\y_utils.inc(336) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\pawno\include\YSI\y_utils.inc(490) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\pawno\include\YSI\y_utils.inc(522) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\pawno\include\YSI\y_utils.inc(540) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\pawno\include\YSI\y_malloc.inc(215) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\pawno\include\fixes.inc(3679) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\pawno\include\fixes.inc(4761) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\pawno\include\sscanf2.inc(270) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\pawno\include\sscanf2.inc(270) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\pawno\include\sscanf2.inc(330) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\pawno\include\sscanf2.inc(330) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(1067) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(1118) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(1118) : warning 215: expression has no effect
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(1118) : warning 215: expression has no effect
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(1118) : error 029: invalid expression, assumed zero
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(1118) : error 017: undefined symbol "bExtra"
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod2.pwn(1118) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Код:
   (( 1118 )) INI_ParseFile(BAN_FILE(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);//Thats Hard To Explain, Just To Load The Data
    if(PlayerInfo[playerid][Banned]==1)
    {
        SendClientMessage(playerid, 0xFF1493FF, "You Are Banned From The Server, Kicked!!!.");
        Kick(playerid);
    }
Reply
#2

sorry on DP, but can anybody help me?
Reply
#3

Quote:
Originally Posted by FL3GM4
Посмотреть сообщение
sorry on DP, but can anybody help me?
Are you sure that you use the newest version of YSI , because i don't find any misstake.
I compiled by myself but i don't get this errors can you show use the lines about the errorline
Reply
#4

Yes, I'm sure... I have newest version of all YSI includes
Reply
#5

For the 11/all warnings, it's because you have defined "string" somewhere in your script as a global variable.

Just erase it and then compile.
Reply
#6

its problem because all line which have "string" warning are - "CreateDynamicObject" codes
Reply
#7

Quote:
Originally Posted by FL3GM4
Посмотреть сообщение
Yes, I'm sure... I have newest version of all YSI includes
the warnings ' re from the includes

but show your code about the errorline
Reply
#8

Код:
public OnPlayerConnect(playerid)
{
	pokusaji[playerid] = 0;
 	SetPlayerCameraPos(playerid, -2704.532470, 378.131256, 14.979453);
	SetPlayerCameraLookAt(playerid, spawnX, spawnY, spawnZ);
	SendDeathMessage(INVALID_PLAYER_ID,playerid, 200);

	new stringe[128];
((1118)))    INI_ParseFile(BAN_FILE(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);//Thats Hard To Explain, Just To Load The Data
    if(PlayerInfo[playerid][Banned]==1)
    {
        SendClientMessage(playerid, 0xFF1493FF, "You Are Banned From The Server, Kicked!!!.");
        Kick(playerid);
    }
    new naslov2[128], text[1024], strText[104];
    format(strText, 35, USER_FILE, PlayerName(playerid));
    if(!INI_Exists(strText))
    {
    	format(naslov2, sizeof(naslov2), "Registracija");
    	format(text, sizeof(text), ""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na WestSide DeathMatch server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun nije pronaden\n\n\nMolimo upisi svoju lozinku da se registriras:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
    	ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, naslov2, text, "Register", "Odustani");
    }
    else
    {
        format(naslov2, sizeof(naslov2), ""#COL_WHITE"Logiranje");
        format(text, sizeof(text),""COL_LIGHTBLUE"________________________________________________\n\n"COL_WHITE"Dobrodosao na WestSide DeathMatch server!\n\n\n"#COL_LIGHTBLUE"%s\n"#COL_WHITE"Tvoj korisnicki racun je pronaden\n\n\nMolimo upisi svoju lozinku da udjes na server:\n\n"COL_LIGHTBLUE"________________________________________________", PlayerName(playerid));
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, naslov2, text, "Login", "Odustani");
    }
Reply
#9

Like IPrototypeI said, the errors are from the include because you have defined string somewhere in global variable in your script.

1-Ctrl+F
2-Type in "new string["
3-Look at the results, if there is one outside of a public, stock, etc, then you'll have to erase it or to rename it.

Edit: I just saw you made an other post, but anyways, you'll still have the warnings even if you fix your command.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)