Jump to content

[REZOLVAT] Problema - Undefine


Ionut09
 Share

Recommended Posts

10 minutes ago, Krusher said:

CMD:clanduty( playerid, params[ ] ) 
{
	if( !PlayerInfo[ playerid ][ pClan ] ) return SendClientMessage( playerid, -1, "{25FDE9}EROARE: {FFFFFF}Nu esti intr-un clan." );

	new string[128];
	switch( ClanDuty[ playerid ] ) 
	{
		case 0: 
		{
			ClanDuty[ playerid ] = 1;
			format(string, sizeof(string), "{25FDE9}CLAN: {FFFFFF}%s este acum la datoria clanului.", GetName( playerid ) ); // EROARE
			SendToClanMessage(PlayerInfo[playerid][pClan], -1, string);
			SCMf( playerid, -1, "{%s}Acum esti la datoria clanului.", clanVariables[ PlayerInfo[ playerid ][ pClan ] ][ clanColor ] );
		}

		case 1: 
		{
			ClanDuty[ playerid ] = 0;
			format(string, sizeof(string), "{25FDE9}CLAN: {FFFFFF}%s nu mai este acum la datoria clanului.", GetName( playerid ) ); //EROARE
			SendToClanMessage(PlayerInfo[playerid][pClan], -1, string);
			SCMf( playerid, -1, "{25FDE9}CLAN: {FFFFFF}Nu mai esti la datoria clanului." );
		}
	}

	return true; 
}

Acum primesc aici aceleasi erori cu string:

timer spraytimerr[ 240000 ]( zone ) {
	if( clanZoneVariables[ zone ][ clanZoneAttacked ] == 0 )
		return true;
	format(string, sizeof(string), "{25FDE9}CLAN: {FFFFFF}Clan %s failed to win turf %d owned by your clan.", clanVariables[ clanZoneVariables[ zone ][ clanZoneAttacked ] ][ clanName ], zone );
	SendToClanMessage(PlayerInfo[playerid][pClan], -1, gString);
	format(string, sizeof(string), "{25FDE9}CLAN: {FFFFFF}Your clan failed to win turf %d owned by clan %s.", zone, clanVariables[ clanZoneVariables[ zone ][ clanZoneAttacked ] ][ clanName ] );
	SendToClanMessage(PlayerInfo[playerid][pClan], -1, gString);
	clanZoneVariables[ zone ][ clanZoneAttacked ] = 0; clanZoneVariables[ zone ][ clanZoneProcent ] = 0;
	stop spraytimer[ zone ];
	return true; }

 

Link to comment
Share on other sites

  • Administrator
timer spraytimerr[ 240000 ]( zone ) {
	if( clanZoneVariables[ zone ][ clanZoneAttacked ] == 0 )
		return true;
        new string[128];
	format(string, sizeof(string), "{25FDE9}CLAN: {FFFFFF}Clan %s failed to win turf %d owned by your clan.", clanVariables[ clanZoneVariables[ zone ][ clanZoneAttacked ] ][ clanName ], zone );
	SendToClanMessage(PlayerInfo[playerid][pClan], -1, string);
	format(string, sizeof(string), "{25FDE9}CLAN: {FFFFFF}Your clan failed to win turf %d owned by clan %s.", zone, clanVariables[ clanZoneVariables[ zone ][ clanZoneAttacked ] ][ clanName ] );
	SendToClanMessage(PlayerInfo[playerid][pClan], -1, string);
	clanZoneVariables[ zone ][ clanZoneAttacked ] = 0; clanZoneVariables[ zone ][ clanZoneProcent ] = 0;
	stop spraytimer[ zone ];
	return true; }

-

Link to comment
Share on other sites

11 hours ago, Krusher said:

timer spraytimerr[ 240000 ]( zone ) {
	if( clanZoneVariables[ zone ][ clanZoneAttacked ] == 0 )
		return true;
        new string[128];
	format(string, sizeof(string), "{25FDE9}CLAN: {FFFFFF}Clan %s failed to win turf %d owned by your clan.", clanVariables[ clanZoneVariables[ zone ][ clanZoneAttacked ] ][ clanName ], zone );
	SendToClanMessage(PlayerInfo[playerid][pClan], -1, string);
	format(string, sizeof(string), "{25FDE9}CLAN: {FFFFFF}Your clan failed to win turf %d owned by clan %s.", zone, clanVariables[ clanZoneVariables[ zone ][ clanZoneAttacked ] ][ clanName ] );
	SendToClanMessage(PlayerInfo[playerid][pClan], -1, string);
	clanZoneVariables[ zone ][ clanZoneAttacked ] = 0; clanZoneVariables[ zone ][ clanZoneProcent ] = 0;
	stop spraytimer[ zone ];
	return true; }

(29617) : error 017: undefined symbol "playerid"
(29619) : error 017: undefined symbol "playerid"
(29626) : warning 219: local variable "playerid" shadows a variable at a preceding level
(29660) : error 021: symbol already defined: "string"
(29698) : error 017: undefined symbol "string"
(29698) : error 017: undefined symbol "string"
(29698) : error 029: invalid expression, assumed zero
(29698) : fatal error 107: too many error messages on one line

aici cea cu playerid: https://pastebin.com/NzN5a0H2 si aici cea cu string: https://pastebin.com/9m5qruqz

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...