• 04 Juin 2026, 02:12:25


Auteur Sujet: Cordonées/interieur  (Lu 1227 fois)

0 Membres et 1 Invité sur ce sujet

Hors ligne Quentin_Mysterio

  • *
  • Criminel
  • Messages: 36
    • Voir le profil
Cordonées/interieur
« le: 08 Août 2009, 20:48:45 »
Bonsoir ,

voici mon probleme j'ai crée une sortie et une entré pour un batiment sa marche mais quand j'entre dedans en ayant bien preciser l'interior id je voit que la moitier du decor et quand je ressort pareil...


    }
else if(PlayerToPointStripped(1, playerid,1727.8037,-1635.3759,20.2166, cx,cy,cz))
{//ANPE entré
GameTextForPlayer(playerid, "~w~~r~A.N.P.E", 5000, 1);
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid,1726.1801,-1643.9402,20.2259);
PlayerInfo[playerid][pInt] = 0;

    }
else if(PlayerToPointStripped(1, playerid,1726.1801,-1643.9402,20.2259, cx,cy,cz))
{//ANPE sortie
GameTextForPlayer(playerid, "~w~~g~Los Santos", 5000, 1);
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid,1727.8037,-1635.3759,20.2166);
PlayerInfo[playerid][pInt] = 0;

Merci d'avance

Hors ligne Jerome02

  • *
  • Tueur en série
  • Messages: 211
    • Voir le profil
Re : Cordonées/interieur
« Réponse #1 le: 08 Août 2009, 21:17:48 »
ton problème vient d'ici 

SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid,1726.1801,-1643.9402,20.2259);
[color=red]PlayerInfo[playerid][pInt] = 0;[/color]

si tu met un SetPlayerInterior(playerid, 2); tu doit mettre la même chose dans PlayerInfo[playerid][pInt] = 0; !

essaye sa :


    }
else if(PlayerToPointStripped(1, playerid,1727.8037,-1635.3759,20.2166, cx,cy,cz))
{//ANPE entré
GameTextForPlayer(playerid, "~w~~r~A.N.P.E", 5000, 1);
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid,1726.1801,-1643.9402,20.2259);
PlayerInfo[playerid][pInt] = 2;

    }
else if(PlayerToPointStripped(1, playerid,1726.1801,-1643.9402,20.2259, cx,cy,cz))
{//ANPE sortie
GameTextForPlayer(playerid, "~w~~g~Los Santos", 5000, 1);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1727.8037,-1635.3759,20.2166);
PlayerInfo[playerid][pInt] = 0;


tiens moi au courant


bonne soirée


((** Débute dans le scripte mais connais deja pas mal de chose
mais beaucoup a apprendre encore :) **))

Hors ligne Quentin_Mysterio

  • *
  • Criminel
  • Messages: 36
    • Voir le profil
Re : Cordonées/interieur
« Réponse #2 le: 08 Août 2009, 21:21:47 »
Au merci l'erreur toutes cones ;D

Hors ligne Jerome02

  • *
  • Tueur en série
  • Messages: 211
    • Voir le profil
Re : Cordonées/interieur
« Réponse #3 le: 08 Août 2009, 21:23:45 »
c'est rien je suis passer par la aussi  ;)

si tu vient ici c'est un peu pour apprendre aussi :)


((** Débute dans le scripte mais connais deja pas mal de chose
mais beaucoup a apprendre encore :) **))