Jump to content

Question

Posted

Incerc sa adaug o comanda unde trebuie sa utilizez urmatorul dialog:

	if(dialogid == 6666)
    {
 		if (!response)
            return 1;
			if (sscanf( inputtext, "h", inputtext[0]))
			    return ShowPlayerDialog( playerid, DIALOG_WRITE_HEX, DIALOG_STYLE_INPUT, "Type a HEX Code", "{FF0000}Invalid HEX code ! Type it like: 'FFFF00'", "Set", "Cancel");
			if (strlen( inputtext[0])!=6)
			    return ShowPlayerDialog( playerid, DIALOG_WRITE_HEX, DIALOG_STYLE_INPUT, "Type a HEX Code", "{FF0000}Invalid HEX code ! Type it like: 'FFFF00'", "Set", "Cancel");
			PlayerInfo[playerid][p_TextColor]=inputtext[0];
			FormatMSG(playerid, ~1, "You set your chat color to {%06x}this", PlayerInfo[playerid][p_TextColor]);
			return 1;
		}
Iar cand dau compile primesc urmatorile erori/warninguri:
C:\Users\Y\Desktop\X\filterscripts\LuxAdmin.pwn(10813) : error 017: undefined symbol "PlayerInfo"
C:\Users\Y\Desktop\X\filterscripts\LuxAdmin.pwn(10813) : warning 215: expression has no effect
C:\Users\Y\Desktop\X\filterscripts\LuxAdmin.pwn(10813) : error 001: expected token: ";", but found "]"
C:\Users\Y\Desktop\X\filterscripts\LuxAdmin.pwn(10813) : error 029: invalid expression, assumed zero
C:\Users\Y\Desktop\X\filterscripts\LuxAdmin.pwn(10813) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Astea fiind liniile 10812, 10813, 10814:
			    return ShowPlayerDialog( playerid, DIALOG_WRITE_HEX, DIALOG_STYLE_INPUT, "Type a HEX Code", "{FF0000}Invalid HEX code ! Type it like: 'FFFF00'", "Set", "Cancel");
			PlayerInfo[playerid][p_TextColor]=inputtext[0];
			FormatMSG(playerid, ~1, "You set your chat color to {%06x}this", PlayerInfo[playerid][p_TextColor]);

Stie careva cum sa le rezolv ?

BannerZdupp.png

4 answers to this question

Recommended Posts

Posted

Cauta in GM la tine PlayerData vezi daca gasesti,cauta PlayerInfo si schimbo cu PlayerData

 

 

Posted

Da, am PlayerData si am modificat din PlayerInfo in PlayerData si tot aia aproape ca e...

C:\Users\Adrian\Desktop\x\filterscripts\Editing Files\LuxAdmin.pwn(10813) : error 028: invalid subscript (not an array or too many subscripts): "PlayerData"
C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin.pwn(10813) : warning 215: expression has no effect
C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin.pwn(10813) : error 001: expected token: ";", but found "]"
C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin.pwn(10813) : error 029: invalid expression, assumed zero
C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin.pwn(10813) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

BannerZdupp.png

Posted

Pune:

[pawn]return ShowPlayerDialog( playerid, DIALOG_WRITE_HEX, DIALOG_STYLE_INPUT, "Type a HEX Code", "{FF0000}Invalid HEX code ! Type it like: 'FFFF00'", "Set", "Cancel");

            PlayerInfo[playerid][p_TextColor]=inputtext[0]);

            FormatMSG(playerid, ~1, "You set your chat color to {%06x}this", PlayerInfo[playerid][p_TextColor]);[/pawn]

 

 

Posted

Inca nu...

C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin.pwn(10807) : warning 225: unreachable code
C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin.pwn(10807) : error 017: undefined symbol "PlayerInfo"
C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin.pwn(10807) : warning 215: expression has no effect
C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin.pwn(10807) : error 001: expected token: ";", but found "]"
C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin.pwn(10807) : error 029: invalid expression, assumed zero
C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin.pwn(10807) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
EDIT: Am prelucrat comanda pana am ajuns sa primesc asa:
C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin2\LuxAdmin.pwn(5065) : error 029: invalid expression, assumed zero
C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin2\LuxAdmin.pwn(5065) : error 017: undefined symbol "ChatColor"
C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin2\LuxAdmin.pwn(5065) : error 029: invalid expression, assumed zero
C:\Users\y\Desktop\x\filterscripts\Editing Files\LuxAdmin2\LuxAdmin.pwn(5065) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Liniile 5063, 5064, 5065 fiind:
	new
		gsString[900];
		format( gsString, 900,`ChatColor` = '%d', gsString, PlayerData[ playerid ][ p_TextColor ]);

BannerZdupp.png

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.