variables fail
#1

i have this code:
pawn Код:
enum BotuKintamieji
{
    dyleris1,
    dyleris2,
    dyleris3,
    dyleris4
}
new bKint[ BotuKintamieji ];
pawn Код:
if( !strcmp( npcname, "Dyleris1", true ) )// Stumdo dumus
    {
        bKint[ dyleris1 ] = 0;
        SetPlayerPos( playerid, DyleriuSpawn1[ rand1 ][ 0 ],DyleriuSpawn1[ rand1 ][ 1 ],DyleriuSpawn1[ rand1 ][ 2 ] );
        SetPlayerFacingAngle( playerid, DyleriuSpawn1[ rand1 ][ 3 ] );
        new Float:x,
            Float:y,
            Float:z
            ;
        GetPlayerPos( playerid, x, y, z );
        if( x == 254 &&  y == -158 && z == 1 ) bKint[ dyleris1 ] = 1;
        else if( x == 644 &&  y == -511 && z == 16 ) bKint[ dyleris1 ] = 2;
        else if( x == 1310 &&  y == 165 && z == 20 ) bKint[ dyleris1 ] = 3;
        else if( x == 2259.426 &&  y == 64 && z == 26 ) bKint[ dyleris1 ] = 4;
    }
and when npc is changed his pos, variable isint seting
Reply
#2

try this.. https://sampwiki.blast.hk/wiki/NPC:SetMyPos

and this https://sampforum.blast.hk/showthread.php?tid=423611
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)