• 06 Juin 2026, 22:08:00


Voir les contributions

Cette section vous permet de consulter les contributions (messages, sujets et fichiers joints) d'un utilisateur. Vous ne pourrez voir que les contributions des zones auxquelles vous avez accès.


Messages - Tomop

Pages: [1]
1
Scripting SA-MP [Pawn center] / Re : Probleme dans system public
« le: 24 Janvier 2011, 22:27:26 »
Oui Boomer t'a raison mais quand j'ai fait sa sa me fait : Indefined symbole p faim etc .. sachant que j'ai declarer (new)

2
Scripting SA-MP [Pawn center] / Re : Aide
« le: 24 Janvier 2011, 22:19:39 »
Oui t'a raison mais mon vrai probleme ses dans la compliation regardez :
 error 033: array must be indexed (variable "MedicTime")
warning 204: symbol is assigned a value that is never used: "string"
 warning 204: symbol is assigned a value that is never used: "name"
error 010: invalid function or declaration
 error 010: invalid function or declaration
fatal error 107: too many error messages on one line

est un j'ai remarquer que j'ai pas de timer si MedicTime 10 et comman faire un timer

3
Scripting SA-MP [Pawn center] / Re : Probleme dans system public
« le: 24 Janvier 2011, 21:13:58 »
error 017: undefined symbol "INFO"
 error 017: undefined symbol "Inf"
 error 017: undefined symbol "iz"
 error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

4
Scripting SA-MP [Pawn center] / Re : Probleme dans system public
« le: 24 Janvier 2011, 20:25:30 »
des erreurs à la compilation

5
Scripting SA-MP [Pawn center] / Re : Probleme dans system public
« le: 24 Janvier 2011, 14:04:12 »
pardon , mais je suis nouveau     :'(

6
Scripting SA-MP [Pawn center] / Probleme dans system public
« le: 24 Janvier 2011, 13:40:00 »
Bonjour , j'ai problème sur se script  le voila :
Code: (pawn) [Sélectionner]

forward Info();
public Info()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && Inf[iz == 1)
{
new tmp[265], couleur1[2], couleur2[2], couleur3[2], couleur4[2];
new argent = GetPlayerMoney(i);
new pourcent = 100;
   new soif = PlayerInfo[i][pSoif]*pourcent/180;
   new faim = PlayerInfo[i][pAp]*pourcent/240;
   new fatigue = PlayerInfo[i][pDormir]*pourcent/950;
   new pipi = PlayerInfo[i][pBesoin]*pourcent/60;
   if(soif < 51) { couleur1 = "g"; } else if(soif >= 51 && soif < 81) { couleur1 = "y"; } else if(soif >= 81) { couleur1 = "r"; }
   if(faim < 51) { couleur2 = "g"; } else if(faim >= 51 && faim < 81) { couleur2 = "y"; } else if(faim >= 81) { couleur2 = "r"; }
   if(fatigue < 51) { couleur3 = "g"; } else if(fatigue >= 51 && fatigue < 81) { couleur3 = "y"; } else if(fatigue >= 81) { couleur3 = "r"; }
   if(pipi < 51) { couleur4 = "g"; } else if(pipi >= 51 && pipi < 81) { couleur4 = "y"; } else if(pipi >= 81) { couleur4 = "r"; }
if(BilgiGosterge[i] == true)
{

TextDrawHideForPlayer(i, Text:Fondcarrerstats);
TextDrawDestroy(Bilgi[i]);
}
format(tmp, sizeof(tmp), "~b~Argent~w~: %d~g~$~n~~b~Soif~w~:    ~%s~%d~w~%%~n~~b~Faim~w~:   ~%s~%d~w~%%~n~~b~Pipi~w~:     ~%s~%d~w~%%~n~~b~Fatigue~w~: ~%s~%d~w~%%", argent,couleur1,soif,couleur2,faim,couleur4,pipi,couleur3,fatigue);

           Bilgi[i] = TextDrawCreate(526.000000, 387.000000,tmp);
           TextDrawAlignment(Bilgi[i],0);
TextDrawBackgroundColor(Bilgi[i],0x000000ff);
TextDrawFont(Bilgi[i],1);
TextDrawLetterSize(Bilgi[i],0.299999,1.000000);
TextDrawColor(Bilgi[i],0x00ffffff);
TextDrawSetProportional(Bilgi[i],1);
TextDrawSetShadow(Bilgi[i],1);
   TextDrawShowForPlayer(i, Bilgi[i]);
   TextDrawSetOutline(Bilgi[i], 1);

   TextDrawShowForPlayer(i, Text:Fondcarrerstats);
            BilgiGosterge[i] = true;

}
else
{
   if(BilgiGosterge[i] == true)
{

TextDrawHideForPlayer(i, Text:Fondcarrerstats);
TextDrawDestroy(Bilgi[i]);
}
}
}

}
INFO = SetTimer("Info",1000,1);
Pour un Scripteur pawno débutant ou est le problème ???
[(Sécurité)Droit d'auteur : cette Question a été prise de se url ( je suis intéresser de ce system ) : http://www.gtaonline.fr/forums/index.php/topic,10535.msg182103.html#msg182103 ]

7
Scripting SA-MP [Pawn center] / Aide
« le: 24 Janvier 2011, 00:43:17 »
Voila se que j'ai comme problème j'ai fait un script pour quand en mort en va a l'hôpital etc mais j'ai un problème Voila mon script :
j'aimis bien MedicTime  sur les forward etc et dans les Pinfo du personnage.
Code: (pawn) [Sélectionner]
public OnPlayerDeath(playerid, killerid, reason)
{
new name[MAX_PLAYER_NAME];
new string[256];
//new dmessage[128];
//new deathreason[20];
new playercash;
new victimteam;
new Float:px,Float:py,Float:pz;
new killerteam;
DropWeapons( playerid );
victimteam = gTeam[playerid];
killerteam = gTeam[killerid];
PlayerInfo[playerid][pInvWeapon] = 0;
PlayerInfo[playerid][pInvAmmo] = 0;
PlayerInfo[playerid][pLocal] = 255;
SetPlayerPos(playerid, 1182.5638,-1323.5256,13.5790);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pDeaths] += 1;
SetPlayerHealth(playerid, 25.0);
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~  ~w~ Vous etes blessez, Vous avez besoin de repos", 30000, 3);
GameTextForPlayer(playerid, "~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~w~ Les medcin s'occupent de vous", 30000, 3);
JustDied[playerid] = 1;
MedicTime[playerid] = 1;
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
NeedMedicTime[playerid] = 10;
if(MedicTime > 0)
{
SendClientMessage(playerid, COLOR_WHITE, " Docteur : Votre examen medical es positif 150 $ Pour les tarifs, Bonne journée.");
TogglePlayerControllable(playerid, 1);
PlayerInfo[playerid][pDeaths] += 1;
}
return 1;
}
Mais sa marche pas que faire
merci d'avance

8
 :wall  :-\  :-X  :-[ et pourquoi je fait tous sa si le joueur est mort ... T'a Raison Que je suis idiot  !!
Mais Je veux créer un System De chose de voiture quand il a un accident en nous dit  tu est blesse et après il et diminue 50 % de ta vie mais comment faire   :lmao








                                 Sandreas:RolePlay
[/font]
Voiture System : 100 %
Map: 50 %
CMD Admin : 50 %
CMD General : 60 %
Faction : 70 %
JOB: 100 %

9
Scripting SA-MP [Pawn center] / probleme dans la declaration
« le: 22 Janvier 2011, 21:49:26 »
(J'ai essayez de corrigez mes fautes)
Bonjour ,
J'ai encore 1 problème j'ai su comment créer une commande , les gamemode et filterscript et include se sont quoi
et ses quoi les callsback et comment créer des véhicule objets etc ..
Mais je sais rien en public
Voila mon problème :
 [ code=pawn]forward PlayerHealth
public health54()
{
   if PlayerHealth(playerid,>=15)
   {
       SendClientMessage(i, COLOR_YELLOW, "Vous étés blessez et évanouie si vous voulez appelez un médecin (tapez /service médecin ");
       SendClientMessage(i, COLOR_YELLOW, "Ou cliquez sur /mourir ");
       TogglePlayerControllable(playerid,0)
       SetPlayerCameraPos(giveplayerid, 2000,-2000,2000);
        SetPlayerCameraLookAt(giveplayerid, 2000,-2000,2000);
           }
   return 1;
}
[ /code]
J'ai créer la commande /mourir avec votre aide Merci ! .
mais maitenant je sais pas comment déclarer Si la vie du joueur et moins que 15 faire : ......
j'ai mis if playerhealth mais sa marche pas veuillez m'aidez et merci d'avance

10
Scripting SA-MP [Pawn center] / Re : Un probleme dans un cmd
« le: 22 Janvier 2011, 21:18:34 »
est ce que mon probleme etait que ne lui a pas bien placez ?

11
Scripting SA-MP [Pawn center] / Re : FS qui crash dans Pawno!
« le: 22 Janvier 2011, 20:54:21 »
Moi aussi sa me fait sa mais quand j'ai beacoup de fautes ou j'ai ecrit quelque chose different je suis windows 7 32 bit

12
Scripting SA-MP [Pawn center] / Un probleme dans un cmd
« le: 22 Janvier 2011, 19:39:46 »
Bonjour ,j'ai creer une petite commande pour mourir si notre health 54 soit 1 et pk qu'il soit 1 il te faut qu'il soit ton health 15 en mois tu est freeze et un message te dit tu est blessé tu peux appeler les medcin en fesant /..... ou /mourrir j'ai creer se public j'ai mis health54 dans les pinfo etc. en forward  mais dans la commande j'ai un petit probleme le voila le script :  
    if(strcmp(cmd, "/mourrir", true) == 0)
    {
        if(PlayerInfo[playerid][phealth54] == 1
 {
   SendClientMessage(playerid,COLOR_GREEN,"Au Revoir , Vous êtes mort ");
    SetPlayerHealth(playerid,0)
 }
 return 1;
   }
  else
 {
 SendClientMessage(playerid,COLOR_GREEN,"Et pourqoui vous etes en meuilleur santé ? !! ");
}
   return 1;
mais un message me dit :
error 029: invalid expression, assumed zero
Pouvez vous m'aidez ?
 merci d'avance
   

Pages: [1]