Probleme /agarer
#1

http://pastebin.com/ZN2CniEP
Voici la commande, enfaоte la commande fonctionne mais je ne peux pas /agarer les vйhicule de faction et location sa me dit Ce vйhicule ne peut pas кtre agarer!
merci. GM:http://www.gtaonline.net/forums/index.php?topic=11077.0
Reply
#2

Remplace

PHP Code:
if(PlayerInfo[playerid][pAdmin] >= 3)
{
     if(
carid >= 184)
     {
          
CarInfo[carid][cLocationx] = x;
          
CarInfo[carid][cLocationy] = y;
          
CarInfo[carid][cLocationz] = z;
          
CarInfo[carid][cAngle] = a;
          
format(stringsizeof(string), "~n~ Vous avez garer ce vehicule a cette position. ~n~");
          
GameTextForPlayer(playerid"Vous avez garer ce vehicule a cette position. Il reaparetra ici."100003);
          
OnPropUpdate();
          
OnPlayerUpdate(playerid);
          
DestroyVehicle(carid);
          
CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
          return 
1;
     }
     else
     {
          
SendClientMessage(playeridCOLOR_GREY"Ce vйhicule ne peut pas кtre agarer!");
          return 
1;
     }

en

PHP Code:
if(PlayerInfo[playerid][pAdmin] >= 3)
{
     
CarInfo[carid][cLocationx] = x;
     
CarInfo[carid][cLocationy] = y;
     
CarInfo[carid][cLocationz] = z;
     
CarInfo[carid][cAngle] = a;
     
format(stringsizeof(string), "~n~ Vous avez garer ce vehicule a cette position. ~n~");
     
GameTextForPlayer(playerid"Vous avez garer ce vehicule a cette position. Il reaparetra ici."100003);
     
OnPropUpdate();
     
OnPlayerUpdate(playerid);
     
DestroyVehicle(carid);
     
CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000);
     return 
1;

Reply
#3

PHP Code:
C:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2307) : error 004: function "SafeGivePlayerMoney" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2336) : error 004: function "SafeGivePlayerMoney" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2372) : error 004: function "SafeResetPlayerWeapons" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2373) : error 004: function "SafeGivePlayerWeapon" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2400) : error 004: function "SafeResetPlayerWeapons" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2882) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2893) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2905) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2909) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2921) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2925) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2929) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2933) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2937) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2941) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2945) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2949) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2953) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2966) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2970) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2974) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2978) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2982) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2994) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(2998) : error 004: function "PlayerToPoint" is not implemented
C
:\Users\Dylan\Desktop\FCRP\gamemodes\larp.pwn(3002) : error 004: function "PlayerToPoint" is not implemented
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
26 Errors

Reply
#4

Vйrifie t'es incolades. Tu as du mal C/C.
Reply
#5

j'ai refait bien, je pense puis toujours pareil
Reply
#6

Refait voir via Pastepin.
Reply
#7

merci de m'aider.
http://pastebin.com/FST13L4Y
Reply
#8

PHP Code:
if(strcmp(cmd"/agarer"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
         { 
N'est pas fermer..
Reply
#9

Quoi ? tu veux bien me le faire stp
Reply
#10

Voila.
Reply
#11

Merci !!!!! <3
c'etais les 3 } ?
Reply
#12

Tu peut laisser tomber tu peut pas /agarer les vйhicules de factions/jobs ect ... car il sont dans le script est non dans un fichier si tu fait sa le vйhicule disparaоt et tu sera obligй de redйmarrer ton serveur mais le vйhicule sera toujours a la position du script

De rien
Reply
#13

Oui je vien de test , je fait comment alors ?
Reply
#14

Tu modifie les emplacements des CreateVehicle ou CreateDynamicVehicle dans OnGameModeInit().
Reply
#15

ligne par ligne... , dsl de t'avoir fait perdre du temps Chris
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)