Jump to content

Ionut09

Member
  • Posts

    36
  • Joined

  • Last visited

Posts posted by Ionut09

    • Username: Ionut09
    • Problema întălnită: Primesc si eu cateva warning-uri.
    • Detalii despre problemă:
    • //cel de la 17140
      if(newkeys & KEY_NO) , tot codul: https://pastebin.com/sDE4s8c2
      
      //cel de la 17243
      if(IsACop(playerid)), primul,  tot codul: https://pastebin.com/HkmTzUJX
      
      //cel de la 17346
      if (newkeys & KEY_SPRINT), tot codul: https://pastebin.com/jjaiG8Aa
      
      //cel de la 19898
      InsertCar(playerid,Stock[DealerID[playerid]][vID] + 1);
      
      (17140) : warning 217: loose indentation
      (17243) : warning 217: loose indentation
      (17346) : warning 217: loose indentation
      (19898) : warning 202: number of arguments does not match definition
    • Ce ai încercat să faci înainte să postezi?: -
    • Cod sursă (recomandat pastebin.com) : -
    • Alte detalii: -
  1. Nu imi apar icon-urile la startquest.

    dialog_quest: https://pastebin.com/3ep0K02R

    startquest:

    CMD:startquest(playerid, params[]) {
    	new string[128];
    	format(string, sizeof string, "Pentru a lua un ou apasa pe tasta 'F' cand esti langa el\n/tasteaza /stopquest pentru a ascunde map icon.");
    	ShowIcon[playerid] = 1;
    	ShowPlayerDialog(playerid, DIALOG_QUEST, DIALOG_STYLE_MSGBOX, "Start Quest:", string, "Ok", "cancel");
    	return 1;
    }

    stopquest:

    CMD:stopquest(playerid, params[]) {
        SendClientMessage(playerid, -1, "Nu mai vezi map icon-urile de la quest.");
        for(new i = 0; i < 30; i++) {
            RemovePlayerMapIcon(playerid, quest_MapIcon[playerid][i]);
        }
        return 1;
    }

     

  2. 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

  3. 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; }

     

  4. stock SendToClan( clanid, color, const text[ ], va_args<> )  {
    	if( clanid == 0 )
    		return true;
    	new string[ 256 ]; va_format( string, 256, text, va_start<3> );
    	foreach( new x : Player ) { if( PlayerInfo[ x ][ pClan ] == clanid && seeClanChat[ x ] ) SendClientMessage( x, color, string ); }
    	return true; }

     

  5. 51 minutes ago, al3XXXREMASTERED said:

    daca a ajuns la atatia de ce nu mergi sa le ceri? sau sa cumperi direct de la ei?

    Arsenie nu o da fara permisiunea lui kazzy, jah nici atat, dumy nu raspunde, kazzy sta afk pe ts, Alexandru e retras, nu mai dai de el.

  6. 16 minutes ago, dOc said:

    Altii platesc bani grei sa aiba un aspect asa si tu vrei sa dai 3 euro ? hah, am ras.Si pe langa asta si sms!

    Tema celor de la devilzone a ajuns la multi, Arsenie, Kazzy, Jah, Alexandru, Dumy de ce sa fiu prost si sa dau mult pe ceva ce au toti ?

×
×
  • Create New...