Y_ini problem
#1

i using vortex gamemode...

i put in my gamemode Y_ini....i put 2 cmds of y_ini and i have these errors:

Code:
D:\skripta\Windows\pawno\include\YSI\internal\y_funcinc.inc(63) : error 017: undefined symbol "printf"
D:\skripta\Windows\pawno\include\YSI\internal\y_funcinc.inc(63) : warning 215: expression has no effect
D:\skripta\Windows\pawno\include\YSI\internal\y_funcinc.inc(63) : error 001: expected token: ";", but found ")"
D:\skripta\Windows\pawno\include\YSI\internal\y_funcinc.inc(63) : error 029: invalid expression, assumed zero
D:\skripta\Windows\pawno\include\YSI\internal\y_funcinc.inc(63) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#2

Paste the code in here, cant do alot without it..
Reply
#3

in my script i only put these 2 cmds and i have these 4 errors:

Code:
CMD:mute(PARAMS)
{
	LoginCheck(playerid);
	LevelCheck(playerid, 6);

	if(sscanf(params, "uD(0)", params[0], params[1])) return SendUsage(playerid, "/mute "GREY"<id> <time>		"W"NOTICE: "GREY"Time must be in minutes! (If time was not set, Mute forever)", "Will mute the player with time, player cannt mute-evade this");
	else
	{
	    CheckImune(playerid, params[0]);
		if(params[0]  == (0xFFFF))  	return SendError(playerid, "Player not connected!");
		if(params[0]  == playerid) 	  	return SendError(playerid, "You cannot mute yourself!");
		if(P_DATA[params[0]][Mute]) 	return SendError(playerid, "Player is already Mute!");

		if(!params[1])
		{

		    P_DATA[params[0]][Mute] = 1;
	    	P_DATA[params[0]][MuteTime] = 0;


		    #if SAVE_MUTE == true
		    new
				pQue[256];

			format(pQue, 256, "SELECT `Key` FROM `Mute` WHERE `IP` = '%s'", GetPlayerIPEx(params[0]));
			new DBResult:R1 = DB::Query(_DB, pQue);

			if(R1)
			{
				if(!DB::Valid(R1))
				{
				    DB::Free(R1);
					format(pQue, sizeof (pQue), "INSERT INTO `Mute` VALUES (NULL, '%s', '1', '0', '%s')", GetPlayerIPEx(params[0]), Name(params[0]));
					DB::Query(_DB, pQue);
				}
				else
				{
				    DB::Free(R1);
					format(pQue, sizeof (pQue), "UPDATE `Mute` SET `Mute` = '1', `Time` = '0', `RealName` = '%s' WHERE `IP` = '%s'", Name(params[0]), GetPlayerIPEx(params[0]));
					DB::Query(_DB, pQue);
				}
            }

			#endif

			SendAdminCMD(playerid, "Admin "ORAN"%s[%i]"GREY" Mute player "ORAN"%s[%i]", Name(playerid), playerid, Name(params[0]), params[0], params[1]);
		    FormatMSG(playerid, Color:GREY, "You Mute "ORAN"%s[%i]", Name(params[0]), params[0]);
		    SendClientMessage(params[0], Color:GREY, "You have been Mute!");
		}
		else
		{
		    P_DATA[params[0]][Mute] = 1;

		    SendAdminCMD(playerid, "Admin "ORAN"%s[%i]"GREY" Mute player "ORAN"%s[%i]  "GREY"["ORAN"Time: "W"%d"GREY" minutes[", Name(playerid), playerid, Name(params[0]), params[0], params[1]);
            FormatMSG(playerid, Color:GREY, "You Mute "ORAN"%s[%i]  "GREY"["ORAN"Time: "W"%d"GREY" minutes[", Name(params[0]), params[0], params[1]);
            FormatMSG(params[0], Color:GREY, "You have been Mute! "W"["GREE"Time: "W"%d"GREY" minutes"W"[", params[1]);

		    #if SAVE_MUTE == true

                new
					pQue[256];

				format(pQue, 256, "SELECT `Key` FROM `Mute` WHERE `IP` = '%s'", GetPlayerIPEx(params[0]));
				new DBResult:R1 = DB::Query(_DB, pQue);

				if(R1)
				{
					if(!DB::Valid(R1))
					{
					    DB::Free(R1);
						format(pQue, sizeof (pQue), "INSERT INTO `Mute` VALUES (NULL, '%s', '1', '%d', '%s')", GetPlayerIPEx(params[0]), params[1], Name(params[0]));
						DB::Query(_DB, pQue);
					}
					else
					{
                        DB::Free(R1);
						format(pQue, sizeof (pQue), "UPDATE `Mute` SET `Mute` = '1', `Time` = '%d', `RealName` = '%s' WHERE `IP` = '%s'", params[1], Name(params[0]), GetPlayerIPEx(params[0]));
                        DB::Query(_DB, pQue);
					}
				}

			#endif

			KillTimer(MuteTimer[params[0]]);
			MuteTimer[params[0]]  = SetTimerEx("UnMutePlayer", 60_000, true, "i", params[0]);
			P_DATA[params[0]][MuteTime] = params[1];
		}
	}
	return 1;
}

CMD:unmute(PARAMS)
{
    LoginCheck(playerid);
	LevelCheck(playerid, 6);

	if(sscanf(params, "u", params[0])) return SendUsage(playerid, "/unmute "GREY"<id>", "Will unmute the specified player");
	else
	{
	    CheckImune(playerid, params[0]);
	    if(params[0]  == (0xFFFF)) return SendError(playerid, "Player not connected!");
		if(params[0]  == playerid ) return SendError(playerid, "You cannot unmute yourself!");
		if(!P_DATA[params[0]][Mute]) return SendError(playerid, "Player is not Mute!");

		P_DATA[params[0]][Mute] = 0;
		P_DATA[params[0]][MuteTime] = 0;

     	KillTimer(MuteTimer[params[0]]);
 		#if SAVE_MUTE == true

			new
				Query[256];
	    	format(Query, 256, "DELETE FROM  `Mute` WHERE `IP` = '%s'", GetPlayerIPEx(params[0]));
	    	DB::Query(_DB, Query);


		#endif

		SendAdminCMD(playerid, "Admin "ORAN"%s[%i]"GREY" unMute player "ORAN"%s[%i]", Name(playerid), playerid, Name(params[0]), params[0]);
		FormatMSG(playerid, Color:GREY, "You unMute "ORAN"%s[%i]", Name(params[0]), params[0]);
		SendClientMessage(params[0], Color:GREY, "You have been unMute!");
	}
	return 1;
}
Reply
#4

i now have error:


Quote:

D:\skripta\Windows\gamemodes\VortexRoleplay.pwn(7) : fatal error 100: cannot read from file: "YSI"

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


1 Error.

i have "YSI" folder in my pawno/include

i try open pawno then ctrl+O and open my script, but same error
Reply
#5

i know how they looks


#include <a_samp>
#include <streamer>
#include <zcmd>
#include <GeoIP_Plugin>
#include <gtazones>
#include <djson>
#include <Dini>


this is without Y_ini
Reply
#6

but all my command are ZCMD...

errors:

Code:
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(721) : error 017: undefined symbol "dini_Create"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(726) : error 017: undefined symbol "dini_Create"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(731) : error 017: undefined symbol "dini_Create"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(736) : error 017: undefined symbol "dini_Create"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1128) : error 017: undefined symbol "dini_Get"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1129) : error 017: undefined symbol "dini_Int"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1130) : error 017: undefined symbol "dini_Get"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1131) : error 017: undefined symbol "dini_Get"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1132) : error 017: undefined symbol "dini_Get"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1133) : error 017: undefined symbol "dini_Get"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1134) : error 017: undefined symbol "dini_Get"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1135) : error 017: undefined symbol "dini_Get"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1136) : error 017: undefined symbol "dini_Get"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1137) : error 017: undefined symbol "dini_Int"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1138) : error 017: undefined symbol "dini_Int"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1139) : error 017: undefined symbol "dini_Int"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1140) : error 017: undefined symbol "dini_Int"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1141) : error 017: undefined symbol "dini_Int"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1142) : error 017: undefined symbol "dini_Int"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1143) : error 017: undefined symbol "dini_Int"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1144) : error 017: undefined symbol "dini_Int"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1145) : error 017: undefined symbol "dini_Float"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1146) : error 017: undefined symbol "dini_Float"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1147) : error 017: undefined symbol "dini_Float"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1148) : error 017: undefined symbol "dini_Int"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(1149) : error 017: undefined symbol "dini_Float"

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


26 Errors.
Reply
#7

Erm, hang on if you want to use y_INI, using dini too is a little, pointless?

Either include both (which would probably give you an error anyway) or modify your code to work completely with y_INI.

Also, those errors are in no way referenced to ZCMD. So your commands quite obviously work without it (as it is not showing any error related to commands - just dini)
Reply
#8

if i understand, i need to only include dini to work all how need?

is someone do any admin system with y_commands?
Reply
#9

If you don't want to modify you script:

Try including dini WITH the modifications that ****** gave you.

pawn Code:
//add this under #include <a_samp>

#include <dini>
Reply
#10

when i do that, i have these errors:

Code:
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(2027) : warning 219: local variable "Name" shadows a variable at a preceding level
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(2546) : warning 219: local variable "Name" shadows a variable at a preceding level
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(3086) : warning 219: local variable "Name" shadows a variable at a preceding level
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(8682) : warning 219: local variable "Name" shadows a variable at a preceding level
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(8749) : warning 219: local variable "Name" shadows a variable at a preceding level
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(10175) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandPerformed")
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(10180) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandReceived")
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(10219) : warning 219: local variable "Name" shadows a variable at a preceding level
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(10315) : warning 219: local variable "Name" shadows a variable at a preceding level
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(10807) : error 025: function heading differs from prototype
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(10807 -- 10815) : error 021: symbol already defined: "command"
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(10814) : error 025: function heading differs from prototype
C:\Documents and Settings\Cesar Vialpando\Desktop\Windows\gamemodes\VortexRoleplay.pwn(10814 -- 10866) : fatal error 107: too many error messages on one line

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


4 Errors.
but if i need to modify my all commands to ycmd?

omg, that will long time to do
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)