A little help
#1

Hey guys...at last I fixed my mistake..but I'm facing some errors..please help me fix them

This is the area of errors
pawn Код:
}
        // Bank
        if(IsPlayerInSphere(playerid, 5.0, -180.9258, 1132.7721, 19.7422))
        {
            SetPlayerPos(playerid, 319.6804,1852.7080,1613.3672);
            SetPlayerFacingAngle(playerid, 91.7607);
        }
        else if(IsPlayerInSphere(playerid, 5.0, 319.6804, 1852.7080, 1613.3672))
        {
            SetPlayerPos(playerid, -180.9258,1132.7721,19.7422);
            SetPlayerFacingAngle(playerid, 94.2908);
        }
        // Police
        if(IsPlayerInSphere(playerid, 5.0, 95.0559, 1178.1721, 18.6641))
        {
            SetPlayerPos(playerid, 254.2448,1459.5632,-8.3811);
            SetPlayerFacingAngle(playerid, 181.3984);
        }
        else if(IsPlayerInSphere(playerid, 5.0, 254.2448, 1459.5632, -8.3811))
        {
            SetPlayerPos(playerid, 95.0559,1178.1721,18.6641);
            SetPlayerFacingAngle(playerid, 20.6802);
        }
        // DMV
        if(IsPlayerInSphere(playerid, 5.0, -144.9055, 1079.3195, 20.4922))
        {
            SetPlayerPos(playerid, 186.8596,1740.3788,4.7413);
            SetPlayerFacingAngle(playerid, 273.0641);
        }
        else if(IsPlayerInSphere(playerid, 5.0, 186.8596, 1740.3788, 4.7413))
        {
            SetPlayerPos(playerid, -144.9055,1079.3195,20.4922);
            SetPlayerFacingAngle(playerid, 4.5817);
        }
        // Hospital
        if(IsPlayerInSphere(playerid, 5.0, -318.5496, 1050.1066, 20.3403))
        {
            SetPlayerPos(playerid, 1245.8932,324.6824,-11.7422);
            SetPlayerFacingAngle(playerid, 156.4026);
        }
        else if(IsPlayerInSphere(playerid, 5.0, 1245.8932,324.6824,-11.7422))
        {
            SetPlayerPos(playerid, -318.5496,1050.1066,20.3403);
            SetPlayerFacingAngle(playerid, 6.9412);
        }
        return 1;

The compiling errors
Quote:

D:\San Andres e.t.c\Samp Servers\Ross County RP\Ross County RP\gamemodes\rcrp.pwn(31023) : warning 213: tag mismatch
D:\San Andres e.t.c\Samp Servers\Ross County RP\Ross County RP\gamemodes\rcrp.pwn(3102 : warning 213: tag mismatch
D:\San Andres e.t.c\Samp Servers\Ross County RP\Ross County RP\gamemodes\rcrp.pwn(31034) : warning 213: tag mismatch
D:\San Andres e.t.c\Samp Servers\Ross County RP\Ross County RP\gamemodes\rcrp.pwn(31039) : warning 213: tag mismatch
D:\San Andres e.t.c\Samp Servers\Ross County RP\Ross County RP\gamemodes\rcrp.pwn(31045) : warning 213: tag mismatch
D:\San Andres e.t.c\Samp Servers\Ross County RP\Ross County RP\gamemodes\rcrp.pwn(31050) : warning 213: tag mismatch
D:\San Andres e.t.c\Samp Servers\Ross County RP\Ross County RP\gamemodes\rcrp.pwn(31056) : warning 213: tag mismatch
D:\San Andres e.t.c\Samp Servers\Ross County RP\Ross County RP\gamemodes\rcrp.pwn(31061) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


8 Warnings.

Reply
#2

Quote:
Originally Posted by xxRichixx
Посмотреть сообщение
Hey guys...at last I fixed my mistake..but I'm facing some errors..please help me fix them

This is the area of errors
pawn Код:
}
        // Bank
        if(IsPlayerInSphere(playerid, 5.0, -180.9258, 1132.7721, 19.7422))
        {
            SetPlayerPos(playerid, 319.6804,1852.7080,1613.3672);
            SetPlayerFacingAngle(playerid, 91.7607);
        }
        else if(IsPlayerInSphere(playerid, 5.0, 319.6804, 1852.7080, 1613.3672))
        {
            SetPlayerPos(playerid, -180.9258,1132.7721,19.7422);
            SetPlayerFacingAngle(playerid, 94.2908);
        }
        // Police
        if(IsPlayerInSphere(playerid, 5.0, 95.0559, 1178.1721, 18.6641))
        {
            SetPlayerPos(playerid, 254.2448,1459.5632,-8.3811);
            SetPlayerFacingAngle(playerid, 181.3984);
        }
        else if(IsPlayerInSphere(playerid, 5.0, 254.2448, 1459.5632, -8.3811))
        {
            SetPlayerPos(playerid, 95.0559,1178.1721,18.6641);
            SetPlayerFacingAngle(playerid, 20.6802);
        }
        // DMV
        if(IsPlayerInSphere(playerid, 5.0, -144.9055, 1079.3195, 20.4922))
        {
            SetPlayerPos(playerid, 186.8596,1740.3788,4.7413);
            SetPlayerFacingAngle(playerid, 273.0641);
        }
        else if(IsPlayerInSphere(playerid, 5.0, 186.8596, 1740.3788, 4.7413))
        {
            SetPlayerPos(playerid, -144.9055,1079.3195,20.4922);
            SetPlayerFacingAngle(playerid, 4.5817);
        }
        // Hospital
        if(IsPlayerInSphere(playerid, 5.0, -318.5496, 1050.1066, 20.3403))
        {
            SetPlayerPos(playerid, 1245.8932,324.6824,-11.7422);
            SetPlayerFacingAngle(playerid, 156.4026);
        }
        else if(IsPlayerInSphere(playerid, 5.0, 1245.8932,324.6824,-11.7422))
        {
            SetPlayerPos(playerid, -318.5496,1050.1066,20.3403);
            SetPlayerFacingAngle(playerid, 6.9412);
        }
        return 1;

The compiling errors
Which of this are tag mismatch?

SetPlayerFacingAngle or IsPlayerInSphere? Your SetPlayerPos has no problem.

Код:
SetPlayerFacingAngle( playerid, 0 );
or
Код:
SetPlayerFacingAngle( playerid, 0.0 );
Reply
#3

Sorry I am retarded :P
Quote:

if(IsPlayerInSphere(playerid, 5.0, -180.9258, 1132.7721, 19.7422))
else if(IsPlayerInSphere(playerid, 5.0, 319.6804, 1852.7080, 1613.3672))

and so on..all the "IFs" and "ELSE IFs"
Reply
#4

In easy words...the problem is in ISPLAYERINSPHERE.
Anyone?
Reply
#5

pawn Код:
IsPlayerInSphere(playerid, Float:x, Float:y, Float:z, radius)
So, you must put the radius at the end, but as an integer, not a float.
Edit: Lol , no need to shout xdd.
Reply
#6

FIXED...+rep for Dragonsaurus!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)