#1

Код:
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(981) : warning 201: redefinition of constant/macro (symbol "dcmd(%1,%2,%3)")
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2688) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(2690) : warning 209: function "IsAtLicenseplace" should return a value
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9979) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9979) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9979) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9979) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9979) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9979) : warning 215: expression has no effect
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9979) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9979) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mihai\Desktop\GM\gamemodes\Godfather.pwn(9979) : fatal error 107: too many error messages on one line

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


4 Errors.
Line 981:
Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Line 2688 - 2690:
Код:
    if(IsPlayerInRangeOfPoint(playerid, Float:362.4653, Float:173.7711, Float:1008.3828))
	return 1;
}
Line 9979
Код:
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(PlayerToPoint(playerid,3.0,1549.0999755859, -1651.9000244141,12.36));                                        -> 9979
			{
			    MoveDynamicObject(usadejos1,1549.1999511719, -1651.0, 14.300000190735,4);
			    MoveDynamicObject(usadejos2,1549.1999511719, -1656.5, 14.300000190735,4);
				SetTimer("InchideUsaDeJos",3000,0);
			}
		}
	}

	return 1;
}
Reply
#2

For 981

Use CTRL + F and search for dcmd you defined it twice for that is this warning

For 2688

Код:
if(IsPlayerInRangeOfPoint(playerid, 10.0, 362.4653, 173.7711, 1008.3828))
For 9979

pawn Код:
public OnObjectMoved(objectid)
{
    for( new playerid=0; playerid<=MAX_PLAYERS; playerid++)
    {
        if(objectid==platforma)
        {
            if(IsPlayerInRangeOfPoint(playerid,3.0, 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(PlayerToPoint(playerid,3.0,1549.0999755859, -1651.9000244141,12.36))
            {
                MoveDynamicObject(usadejos1,1549.1999511719, -1651.0, 14.300000190735,4);
                MoveDynamicObject(usadejos2,1549.1999511719, -1656.5, 14.300000190735,4);
                SetTimer("InchideUsaDeJos",3000,0);
            }
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)