Probleme /agarer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Français/French (
https://sampforum.blast.hk/forumdisplay.php?fid=30)
+---- Thread: Probleme /agarer (
/showthread.php?tid=493057)
[RESOLUE]Probleme /agarer -
fox63 - 06.02.2014
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
Re : Probleme /agarer -
Chris53340 - 06.02.2014
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(string, sizeof(string), "~n~ Vous avez garer ce vehicule a cette position. ~n~");
GameTextForPlayer(playerid, "Vous avez garer ce vehicule a cette position. Il reaparetra ici.", 10000, 3);
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(playerid, COLOR_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(string, sizeof(string), "~n~ Vous avez garer ce vehicule a cette position. ~n~");
GameTextForPlayer(playerid, "Vous avez garer ce vehicule a cette position. Il reaparetra ici.", 10000, 3);
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;
}
Re : Probleme /agarer -
fox63 - 06.02.2014
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 (c) 1997-2006, ITB CompuPhase
26 Errors.
Re : Probleme /agarer -
Chris53340 - 06.02.2014
Vйrifie t'es incolades. Tu as du mal C/C.
Re : Probleme /agarer -
fox63 - 06.02.2014
j'ai refait bien, je pense puis toujours pareil
Re : Probleme /agarer -
Chris53340 - 06.02.2014
Refait voir via Pastepin.
Re : Probleme /agarer -
fox63 - 06.02.2014
merci de m'aider.
http://pastebin.com/FST13L4Y
Re : Probleme /agarer -
Chris53340 - 06.02.2014
PHP Code:
if(strcmp(cmd, "/agarer", true) == 0)
{
if(IsPlayerConnected(playerid))
{
N'est pas fermer..
Re : Probleme /agarer -
fox63 - 06.02.2014
Quoi ? tu veux bien me le faire stp
Re : Probleme /agarer -
Chris53340 - 06.02.2014
Voila.
Re : Probleme /agarer -
fox63 - 06.02.2014
Merci !!!!! <3
c'etais les 3 } ?
Re : Probleme /agarer -
Sus-Pets - 06.02.2014
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
Re : Probleme /agarer -
fox63 - 06.02.2014
Oui je vien de test
, je fait comment alors ?
Re : Probleme /agarer -
Chris53340 - 06.02.2014
Tu modifie les emplacements des CreateVehicle ou CreateDynamicVehicle dans OnGameModeInit().
Re : Probleme /agarer -
fox63 - 06.02.2014
ligne par ligne... , dsl de t'avoir fait perdre du temps Chris