Jump to content

DarkWolf

Membru
  • Posts

    9
  • Joined

  • Last visited

    Never

Posts posted by DarkWolf

  1. Tot nu merge + acum ori de cate ori dau /news imi apare: You are not in the News Van or Chopper !

    if(strcmp(cmd, "/news", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    			if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
    			{
                   if(SendMessageNews[playerid] == 1)
    {
        SendClientMessage(playerid, -1, "Asteapta 60 de secunde (1 minut) !");
        return 1;
    }
    			    new newcar = GetPlayerVehicleID(playerid);
    		        if(PlayerInfo[playerid][pMuted] == 1)
    				{
    					format(string, sizeof(string), "You can not speak, you have been silenced for %d seconds.",PlayerInfo[playerid][pMuteTime]);
    				SendClientMessage(playerid, COLOR_LIGHTRED, string);
    					return 1;
    				}
    				{SendMessageNews[playerid] = 1;
    SetTimerEx("NewsMessage", 60000, false, "i", playerid);
    				}
    				{
    				   SendMessageNews[playerid] = 0; // de fiecare daca cand te conectezi de face 0 variabila
    				}
    				if(newcar == 140 || newcar == NR1 || newcar == NR2)
    				{
    					GetPlayerName(playerid, sendername, sizeof(sendername));
    					new length = strlen(cmdtext);
    					while ((idx < length) && (cmdtext[idx] <= ' '))
    					{
    						idx++;
    					}
    					new offset = idx;
    					new result[64];
    					while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    					{
    						result[idx - offset] = cmdtext[idx];
    						idx++;
    					}
    					result[idx - offset] = EOS;
    					if(!strlen(result))
    					{
    						SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /news [newstext]");
    						return 1;
    					}
    					if(PlayerInfo[playerid][pAdmin] == 0 || PlayerInfo[playerid][pHelper] == 0)
    			    {
    				    for(new i=0; i<MAX_ENTRY; i++)
    					{
    				 	    if(!Swear[i][0]) continue;
    						Cenzura(result,Swear[i]);
    					}
    				}
    					if(FindIP(result)) /// Anti-Reclama
    		   			{
    						SendClientMessage(playerid, COLOR_RED, "You have kicked for Guardian , because you wrote an IP Adress.");
    						new advertiser[MAX_PLAYER_NAME];
    						GetPlayerName(playerid, advertiser, sizeof(advertiser));
    						format(string, sizeof(string), "GL BOT: {FFFF00}%s a primit Kick cu motivul: A scris un IP (Reclama)",advertiser);
    						SendClientMessageToAll(COLOR_RED,string);
    						KickLog(string);
    						Kick(playerid);
    						return 1;
    					}
    					if(anty(result) && PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pHelper] == 0)
    					{
    		            new advertiser[MAX_PLAYER_NAME];
    					GetPlayerName(playerid, advertiser, sizeof(advertiser));
    					format(string, sizeof(string), "GL BOT: {FFFF00}%s a primit Kick cu motivul: Reclama pe /news",advertiser);
    					SendClientMessageToAll(COLOR_RED,string);
    					Kick(playerid);
    					return 0;
    					}
    					format(string, sizeof(string), "NR %s: %s", sendername, result);
    					OOCNews(COLOR_NEWS,string);
    					PlayerInfo[playerid][pNewsSkill] ++;
    					if(PlayerInfo[playerid][pNewsSkill] == 50)
    					{ SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 2, soon you are able to Fly the News Chopper and talk Live."); }
    					else if(PlayerInfo[playerid][pNewsSkill] == 100)
    					{ SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 3, soon you are able to Fly the News Chopper and talk Live."); }
    					else if(PlayerInfo[playerid][pNewsSkill] == 200)
    					{ SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 4, you can fly the News Chopper now."); }
    					else if(PlayerInfo[playerid][pNewsSkill] == 400)
    					{ SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 5, you can now talk Live with any person you want."); }
    				}
    				else
    {
    	if(IsPlayerConnected(playerid))
    	{
    	    if(SendMessageNews[playerid] == 1) { SendMessageNews[playerid] = 0; }
    	}
    }
    				{
    				    SendClientMessage(playerid, COLOR_GREY, "   You are not in the News Van or Chopper !");
    				    return 1;
    				}
    			}
    			else
    			{
    			    SendClientMessage(playerid, COLOR_GREY, "   You are not a News Reporter !");
    			}
    		}//not connected
    		return 1;
    	}

  2. imi da 2 erori:

    C:\Documents and Settings\Mihai\Desktop\Gamelife GM\gamemodes\Godfather.pwn(55055) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Mihai\Desktop\Gamelife GM\gamemodes\Godfather.pwn(55055) : error 004: function "NewsMessage" is not implemented
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    2 Errors.
    
    /news cu timer-ul . . .
    if(strcmp(cmd, "/news", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    			if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
    			{
                   if(SendMessageNews[playerid] == 1)
    {
        SendClientMessage(playerid, -1, "Asteapta 60 de secunde (1 minut) !");
        return 1;
    }
    			    new newcar = GetPlayerVehicleID(playerid);
    		        if(PlayerInfo[playerid][pMuted] == 1)
    				{
    					format(string, sizeof(string), "You can not speak, you have been silenced for %d seconds.",PlayerInfo[playerid][pMuteTime]);
    				SendClientMessage(playerid, COLOR_LIGHTRED, string);
    					return 1;
    				}
    				{
    				   SendMessageNews[playerid] = 0; // de fiecare daca cand te conectezi de face 0 variabila
    				}
    				if(newcar == 140 || newcar == NR1 || newcar == NR2)
    				{
    					GetPlayerName(playerid, sendername, sizeof(sendername));
    					new length = strlen(cmdtext);
    					while ((idx < length) && (cmdtext[idx] <= ' '))
    					{
    						idx++;
    					}
    					new offset = idx;
    					new result[64];
    					while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    					{
    						result[idx - offset] = cmdtext[idx];
    						idx++;
    					}
    					result[idx - offset] = EOS;
    					if(!strlen(result))
    					{
    						SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /news [newstext]");
    						return 1;
    					}
    					if(PlayerInfo[playerid][pAdmin] == 0 || PlayerInfo[playerid][pHelper] == 0)
    			    {
    				    for(new i=0; i<MAX_ENTRY; i++)
    					{
    				 	    if(!Swear[i][0]) continue;
    						Cenzura(result,Swear[i]);
    					}
    				}
    					if(FindIP(result)) /// Anti-Reclama
    		   			{
    						SendClientMessage(playerid, COLOR_RED, "You have kicked for Guardian , because you wrote an IP Adress.");
    						new advertiser[MAX_PLAYER_NAME];
    						GetPlayerName(playerid, advertiser, sizeof(advertiser));
    						format(string, sizeof(string), "GL BOT: {FFFF00}%s a primit Kick cu motivul: A scris un IP (Reclama)",advertiser);
    						SendClientMessageToAll(COLOR_RED,string);
    						KickLog(string);
    						Kick(playerid);
    						return 1;
    					}
    					if(anty(result) && PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pHelper] == 0)
    					{
    		            new advertiser[MAX_PLAYER_NAME];
    					GetPlayerName(playerid, advertiser, sizeof(advertiser));
    					format(string, sizeof(string), "GL BOT: {FFFF00}%s a primit Kick cu motivul: Reclama pe /news",advertiser);
    					SendClientMessageToAll(COLOR_RED,string);
    					Kick(playerid);
    					return 0;
    					}
    					format(string, sizeof(string), "NR %s: %s", sendername, result);
    					OOCNews(COLOR_NEWS,string);
    					PlayerInfo[playerid][pNewsSkill] ++;
    					if(PlayerInfo[playerid][pNewsSkill] == 50)
    					{ SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 2, soon you are able to Fly the News Chopper and talk Live."); }
    					else if(PlayerInfo[playerid][pNewsSkill] == 100)
    					{ SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 3, soon you are able to Fly the News Chopper and talk Live."); }
    					else if(PlayerInfo[playerid][pNewsSkill] == 200)
    					{ SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 4, you can fly the News Chopper now."); }
    					else if(PlayerInfo[playerid][pNewsSkill] == 400)
    					{ SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 5, you can now talk Live with any person you want."); }
    				}
    				else
        public NewsMessage(playerid)
    {
    	if(IsPlayerConnected(playerid))
    	{
    	    if(SendMessageNews[playerid] == 1) { SendMessageNews[playerid] = 0; }
    	}
    }
    				{
    				    SendClientMessage(playerid, COLOR_GREY, "   You are not in the News Van or Chopper !");
    				    return 1;
    				}
    			}
    			else
    			{
    			    SendClientMessage(playerid, COLOR_GREY, "   You are not a News Reporter !");
    			}
    		}//not connected
    		return 1;
    	}

  3. Nick: DarkWolf

    Problema: Vreau sa adaug un timer intre /news de 1 minut

    Erori / warnings: -

    Lini/script:

    if(strcmp(cmd, "/news", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    			if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
    			{
    			    new newcar = GetPlayerVehicleID(playerid);
    		        if(PlayerInfo[playerid][pMuted] == 1)
    				{
    					format(string, sizeof(string), "You can not speak, you have been silenced for %d seconds.",PlayerInfo[playerid][pMuteTime]);
    				SendClientMessage(playerid, COLOR_LIGHTRED, string);
    					return 1;
    				}
    				if(newcar == 140 || newcar == NR1 || newcar == NR2)
    				{
    					GetPlayerName(playerid, sendername, sizeof(sendername));
    					new length = strlen(cmdtext);
    					while ((idx < length) && (cmdtext[idx] <= ' '))
    					{
    						idx++;
    					}
    					new offset = idx;
    					new result[64];
    					while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    					{
    						result[idx - offset] = cmdtext[idx];
    						idx++;
    					}
    					result[idx - offset] = EOS;
    					if(!strlen(result))
    					{
    						SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /news [newstext]");
    						return 1;
    					}
    					if(PlayerInfo[playerid][pAdmin] == 0 || PlayerInfo[playerid][pHelper] == 0)
    			    {
    				    for(new i=0; i<MAX_ENTRY; i++)
    					{
    				 	    if(!Swear[i][0]) continue;
    						Cenzura(result,Swear[i]);
    					}
    				}
    					if(FindIP(result)) /// Anti-Reclama
    		   			{
    						SendClientMessage(playerid, COLOR_RED, "You have kicked for Guardian , because you wrote an IP Adress.");
    						new advertiser[MAX_PLAYER_NAME];
    						GetPlayerName(playerid, advertiser, sizeof(advertiser));
    						format(string, sizeof(string), "GL BOT: {FFFF00}%s a primit Kick cu motivul: A scris un IP (Reclama)",advertiser);
    						SendClientMessageToAll(COLOR_RED,string);
    						KickLog(string);
    						Kick(playerid);
    						return 1;
    					}
    					if(anty(result) && PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pHelper] == 0)
    					{
    		            new advertiser[MAX_PLAYER_NAME];
    					GetPlayerName(playerid, advertiser, sizeof(advertiser));
    					format(string, sizeof(string), "GL BOT: {FFFF00}%s a primit Kick cu motivul: Reclama pe /news",advertiser);
    					SendClientMessageToAll(COLOR_RED,string);
    					Kick(playerid);
    					return 0;
    					}
    					format(string, sizeof(string), "NR %s: %s", sendername, result);
    					OOCNews(COLOR_NEWS,string);
    					PlayerInfo[playerid][pNewsSkill] ++;
    					if(PlayerInfo[playerid][pNewsSkill] == 50)
    					{ SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 2, soon you are able to Fly the News Chopper and talk Live."); }
    					else if(PlayerInfo[playerid][pNewsSkill] == 100)
    					{ SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 3, soon you are able to Fly the News Chopper and talk Live."); }
    					else if(PlayerInfo[playerid][pNewsSkill] == 200)
    					{ SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 4, you can fly the News Chopper now."); }
    					else if(PlayerInfo[playerid][pNewsSkill] == 400)
    					{ SendClientMessage(playerid, COLOR_YELLOW, "* Your News Reporter Skill is now Level 5, you can now talk Live with any person you want."); }
    				}
    				else
    				{
    				    SendClientMessage(playerid, COLOR_GREY, "   You are not in the News Van or Chopper !");
    				    return 1;
    				}
    			}
    			else
    			{
    			    SendClientMessage(playerid, COLOR_GREY, "   You are not a News Reporter !");
    			}
    		}//not connected
    		return 1;
    	}

    Ai incercat sa rezolvi singur ?: Da si nu imi da nici o eroare/advertisment, dar nici nu merge

  4. Nick:  DarkWolf

    Problema: Eroare Pawno

    Erori / warnings:

    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(65) : error 010: invalid function or declaration
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2689) : warning 202: number of arguments does not match definition
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2691) : warning 209: function "IsAtLicenseplace" should return a value
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2705) : error 001: expected token: "-identifier-", but found "("
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2708) : error 010: invalid function or declaration
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4770) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4770) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4774) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4774) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4786) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4786) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4790) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4790) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4794) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4794) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4798) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4798) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4802) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4802) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4806) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4806) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4810) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4810) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4822) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4822) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4826) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4826) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4830) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4830) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4834) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4834) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4838) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4838) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4850) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4854) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4858) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4858) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4870) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4870) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4870) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4870) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4870) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4874) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(4874) : warning 213: tag mismatch
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9986) : error 012: invalid function call, not a valid address
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9986) : warning 215: expression has no effect
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9986) : warning 215: expression has no effect
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9986) : warning 215: expression has no effect
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9986) : warning 215: expression has no effect
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9986) : warning 215: expression has no effect
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9986) : error 001: expected token: ";", but found ")"
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9986) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9986) : fatal error 107: too many error messages on one line
    
    Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    7 Errors.
    Lini/script: Linia 9986:
    public OnObjectMoved(objectid)
    {
    	for( new playerid=0; playerid<=MAX_PLAYERS; playerid++)
    	{
    		if(objectid==platforma)
    		{
    			if(IsPlayerInRangeOfPoint(3,playerid,1549.0999755859, -1651.9000244141,90.36))
    			{
    		    	MoveDynamicObject(usadesus1, 1554.0999755859, -1656.6999755859, 29,4);
    				MoveDynamicObject(usadesus2, 1554, -1651.2999755859, 29,4);
    				SetTimer("InchideUsaDeSus",3000,0);
    			}
    			if(PTP(3,playerid,1549.0999755859, -1651.9000244141,12.36))                                                      <- 9986
    			{
    			    MoveDynamicObject(usadejos1,1549.1999511719, -1651.0, 14.300000190735,4);
    			    MoveDynamicObject(usadejos2,1549.1999511719, -1656.5, 14.300000190735,4);
    				SetTimer("InchideUsaDeJos",3000,0);
    			}
    		}
    	}
    
    	return 1;
    }
    Liniile 2689, 2691, 2705 si 2708:
    public IsAtLicenseplace(playerid)
    {
        if(IsPlayerInRangeOfPoint(playerid, Float:362.4653, Float:173.7711, Float:1008.3828))                      <-2689
    	return 1;
    }
    
    public RACtime(playerid)
    {
          for(new player=0; player<MAX_PLAYERS; player++)
          {
          if(!IsVehicleOccupied(player)) SetVehicleToRespawn(player);
          }
          for(new car = 1; car < sizeof(CarInfo); car++)
          {
              if(!IsVehicleOccupied(car)) SetVehicleToRespawn(car);
          }
    }
    
    public AntiSpam(playerid)                                                                                   <- 2705
    {
    	RecentlyShot[playerid] = 0;
    	return 1;                                                                                                      <- 2708
    }
    Liniile 4770 - 4874
            if(IsPlayerInRangeOfPoint(25.0,playerid,207.737991,-109.019996,1005.132812) || IsPlayerInRangeOfPoint(25.0,playerid,203.9068,-41.0728,1001.8047))
    		{//Binco & Suburban
    		    return 1;
    		}
    		else if(IsPlayerInRangeOfPoint(30.0,playerid,214.4470,-7.6471,1001.2109) || IsPlayerInRangeOfPoint(50.0,playerid,161.3765,-83.8416,1001.8047))
    		{//Zip & Victim
    		    return 1;
    		}
    	}
    	return 0;
    }
    
    public IsAtGasStation(playerid)
    {
        if(IsPlayerConnected(playerid))
    	{
    	if(IsPlayerInRangeOfPoint(6.0,playerid,1004.0070,-939.3102,42.1797) || IsPlayerInRangeOfPoint(6.0,playerid,1944.3260,-1772.9254,13.3906))
    		{//LS
    		    return 1;
    		}
    		else if(IsPlayerInRangeOfPoint(6.0,playerid,-90.5515,-1169.4578,2.4079) || IsPlayerInRangeOfPoint(6.0,playerid,-1609.7958,-2718.2048,48.5391))
    		{//LS
    		    return 1;
    		}
    		else if(IsPlayerInRangeOfPoint(6.0,playerid,-2029.4968,156.4366,28.9498) || IsPlayerInRangeOfPoint(8.0,playerid,-2408.7590,976.0934,45.4175))
    		{//SF
    		    return 1;
    		}
    		else if(IsPlayerInRangeOfPoint(5.0,playerid,-2243.9629,-2560.6477,31.8841) || IsPlayerInRangeOfPoint(8.0,playerid,-1676.6323,414.0262,6.9484))
    		{//Between LS and SF
    		    return 1;
    		}
    		else if(IsPlayerInRangeOfPoint(6.0,playerid,2202.2349,2474.3494,10.5258) || IsPlayerInRangeOfPoint(10.0,playerid,614.9333,1689.7418,6.6968))
    		{//LV
    		    return 1;
    		}
    		else if(IsPlayerInRangeOfPoint(8.0,playerid,-1328.8250,2677.2173,49.7665) || IsPlayerInRangeOfPoint(6.0,playerid,70.3882,1218.6783,18.5165))
    		{//LV
    		    return 1;
    		}
    		else if(IsPlayerInRangeOfPoint(8.0,playerid,2113.7390,920.1079,10.5255) || IsPlayerInRangeOfPoint(6.0,playerid,-1327.7218,2678.8723,50.0625))
    		{//LV
    		    return 1;
    		}
    	}
    	return 0;
    }
    
    public IsAtFishPlace(playerid)
    {
    	if(IsPlayerConnected(playerid))
    	{
    	    if(IsPlayerInRangeOfPoint(1.0,playerid,403.8266,-2088.7598,7.8359) || IsPlayerInRangeOfPoint(1.0,playerid,398.7553,-2088.7490,7.8359))
    		{//Fishplace at the bigwheel
    		    return 1;
    		}
    		else if(IsPlayerInRangeOfPoint(1.0,playerid,396.2197,-2088.6692,7.8359) || IsPlayerInRangeOfPoint(1.0,playerid,391.1094,-2088.7976,7.8359))
    		{//Fishplace at the bigwheel
    		    return 1;
    		}
    		else if(IsPlayerInRangeOfPoint(1.0,playerid,383.4157,-2088.7849,7.8359) || IsPlayerInRangeOfPoint(1.0,playerid,374.9598,-2088.7979,7.8359))
    		{//Fishplace at the bigwheel
    		    return 1;
    		}
    		else if(IsPlayerInRangeOfPoint(1.0,playerid,369.8107,-2088.7927,7.8359) || IsPlayerInRangeOfPoint(1.0,playerid,367.3637,-2088.7925,7.8359))
    		{//Fishplace at the bigwheel
    		    return 1;
    		}
    		else if(IsPlayerInRangeOfPoint(1.0,playerid,362.2244,-2088.7981,7.8359) || IsPlayerInRangeOfPoint(1.0,playerid,354.5382,-2088.7979,7.8359))
    		{//Fishplace at the bigwheel
    		    return 1;
    		}
    	}
    	return 0;
    }
    
    public IsAtCookPlace(playerid)
    {
    	if(IsPlayerConnected(playerid))
    	{
    	    if(IsPlayerInRangeOfPoint(3.0,playerid,369.9786,-4.0798,1001.8589))
    	    {//Cluckin Bell
    	        return 1;
    	    }
    	    else if(IsPlayerInRangeOfPoint(3.0,playerid,378.4672,-68.4609,1001.5151))
    		{//Burgershot
    		    return 1;
    		}
    		else if(IsPlayerInRangeOfPoint(3.0,playerid,374.1185,-113.6361,1001.4922) || IsPlayerInRangeOfPoint(3.0,playerid,377.7971,-113.7668,1001.4922))
    		{//Well Stacked Pizza
    		    return 1;
    		}
    	}
    	return 0;
    }
    
    public IsAtBar(playerid)
    {
        if(IsPlayerConnected(playerid))
    	{
    		if(IsPlayerInRangeOfPoint(4.0,playerid,495.7801,-76.0305,998.7578) || IsPlayerInRangeOfPoint(4.0,playerid,499.9654,-20.2515,1000.6797) || IsPlayerInRangeOfPoint(4.0,playerid,-81.5950,115.4813,4007.0945) || IsPlayerInRangeOfPoint(4.0,playerid,1561.9929,-1695.0873,28.3956) || IsPlayerInRangeOfPoint(4.0,playerid,1765.3066,-1921.0627,13.5668))
    		{
    		    return 1;
    		}
    		else if(IsPlayerInRangeOfPoint(4.0,playerid,1215.9480,-13.3519,1000.9219) || IsPlayerInRangeOfPoint(10.0,playerid,-2658.9749,1407.4136,906.2734))
    		{

    Ai incercat sa rezolvi singur ?: da, dar nu am reusit

  5. NexT." post="159269" timestamp="1395439674"]

    public RACtime(playerid)
    {
          for(new player=0; player<MAX_PLAYERS; player++)
          {
          if(!IsVehicleOccupied(player)) SetVehicleToRespawn(player);
          }
          for(new car = 1; car < sizeof(CarInfo); car++)
          {
              if(!IsVehicleOccupied(car)) SetVehicleToRespawn(car);
          }
    } 
                                              ^                                             | Asta trebuie pusa in parantezele de aici?
    if(IsPlayerInRangeOfPoint(playerid, Float:362.4653, Float:173.7711, Float:1008.3828))
    {
    }

                                                           

                     

  6. C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(65) : error 010: invalid function or declaration
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2689) : warning 202: number of arguments does not match definition
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2691) : warning 209: function "IsAtLicenseplace" should return a value
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2704) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2706) : error 001: expected token: ";", but found "public"
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2706) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2706 -- 2707) : error 028: invalid subscript (not an array or too many subscripts): "playerid"
    C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2706 -- 2707) : fatal error 107: too many error messages on one line
    
    Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    6 Errors.
    
    Linia 65:
    forward CheckOnline();
    forward AntiSpam(playerid);                 <- Linia 65
    forward SetPlayerSpawn(playerid);
    Liniile 2689 - 2710
        if(IsPlayerInRangeOfPoint(playerid, Float:362.4653, Float:173.7711, Float:1008.3828))            <- Linia 2689
    	return 1;
    }                                                                                                                                                                <- Linia 2691
    
    public RACtime(playerid)
    {
          for(new player=0; player<MAX_PLAYERS; player++)
          {
          if(!IsVehicleOccupied(player)) SetVehicleToRespawn(player);
          }
          for(new car = 1; car < sizeof(CarInfo); car++)
          {
              if(!IsVehicleOccupied(car)) SetVehicleToRespawn(car);
          }
          return
    }                                                                                                   <- Linia 2704
    
    public AntiSpam(playerid)                                                             <- Linia 2706
    {                                                                                                   <- Linia 2707
    	RecentlyShot[playerid] = 0;
    	return 1;
    }
    

×
×
  • 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.