Weedgame "le jeux ou on vend de la drogue"

Description

bha ok je c c pas ce qui a de plus instructif comme code mais boff c quand meme mon premier et unique jeux et je laime bien :D:D:D
allord c sa

Source / Exemple :


// ------------------------------------ //
// -                                  - //
// - Programme cree par : WaFFel      - //
// - Cree le            : 24/11/2002  - //
// - Nom du Programme   : WeedGame    - //
// -                                  - //
// ------------------------------------ //
#include <windows.h>
#include <stdio.h>
#include <iostream.h>
#include <conio.h>

class Variable
{
public :
	int Jour;
	float AutoDefAcheter;
	float AutoDefVendre;
	float Weed;
	float Mush;
	float Buvard;
	float Hash;
	float Cash;
	float ArgentBanque;
	float FourTout;
	float Equivalance(int Y)
	{
		float X = FourTout * Y;
		return X;
	}
	unsigned int Roco;
	unsigned int Alex;
	unsigned int Jean;
	int Enemie(int X)
	{
		if(X==1)
		{
			Roco = Roco + 100;
			Alex = Alex + 100;
			Jean = Jean + 100;
		}
		Roco = Roco + 10;
		Alex = Alex + 20;
		Jean = Jean + 15;
		return 0;
	}
};
int  Vendre(Variable& v);
int  FHash(Variable& v);
int  Hasard(int Y);
int  GMush(Variable& v);
int  Dormir(Variable& v);
int  Total(Variable& v);
void Game(Variable& v);
int  AutoDef(Variable& v);
int  Banque(Variable& v);
int  GBuvard(Variable& v);
int  FWeed(Variable& v);
int  Acheter(Variable& v);
void main(void)
{
	Variable v;
	v.Jour = 1;
	v.AutoDefAcheter = 0;
	v.AutoDefVendre = 0;
	v.Weed = 5;
	v.Mush = 1;
	v.Buvard = 1;
	v.Hash = 0.5;
	v.Cash = 5;
	v.ArgentBanque = 20;
	v.FourTout = 0;
	v.Alex = 0;
	v.Jean = 0;
	v.Roco = 0;
	Game(v);
}
int Hasard(int Y)
{
	int X = rand() % Y;
	return X;
}
int Dormir(Variable& v)
{
	system("CLS");
	printf("\n\n\n\n\n\n\nZzZzZzZzZzZzZzzz....");
	v.Jour++;
	if(v.Jour == 7)
	{
		v.Jour = 1;
		system("CLS");
		printf("\n\n\n\n\n\nFISTON !!! Voici Ton Argent De Poche !");
		v.Cash = v.Cash + 5;
	}
	getch();
	return 0;
}
int Total(Variable& v)
{
	system("CLS");
	printf("\n\t\t\tTOTAL\n\n\n");
	printf("Cash             : %f $\n",v.Cash);
	printf("Weed             : %f g\n",v.Weed);
	printf("Hash             : %f g\n",v.Hash);
	printf("Mush             : %f g\n",v.Mush);
	printf("Buvard           : %f Bu\n",v.Buvard);
	printf("Jour             : %i\n",v.Jour);
	printf("Argent en Banque : %f $\n",v.ArgentBanque);
	printf("\nPouvoir : \nRoco : %i $\nAlex : %i $\nJean : %i $",v.Roco,v.Alex,v.Jean);
	getch();
	return 0;
}
int AutoDef(Variable& v)
{
	v.FourTout = 0;
	system("cls");
	printf("\n\t\t\tClub D'Auto Defence\n");
	printf("1- BaseBall Bat (+2 chanche contre le vole)   :    100$\n");
	printf("2- Taser        (+4 chanche contre le vole)   :    200$\n");
	printf("3- Pistolet     (+2 chanche contre la police) :    300$\n");
	printf("4- Mitraillette (+4 chanche contre la police) :   1000$\n");
	printf("\nCHOIX : ");
	cin >> v.FourTout;
	if(v.FourTout == 1 || v.FourTout == 2)
	{
		if(v.AutoDefAcheter == 4)
		{
			system("cls");
			printf("Vous Ne Pouver Plus Acheter des Item Contre Le Vole\n");
			getch();
			return 0;
		}
		if((v.FourTout == 1 && v.Cash < 100) || (v.FourTout == 2 && v.Cash < 200))
		{
			system("cls");
			printf("Vous Ne Pouver Acheter Cette Item Car Il Est Trop Chere");
			getch();
			return 0;
		}
		if(v.FourTout == 1){v.FourTout = 100;}
		if(v.FourTout == 2){v.FourTout = 200;}
		v.Cash = v.Cash - v.FourTout;
		if(v.FourTout == 100){v.FourTout = 2;}
		if(v.FourTout == 200){v.FourTout = 4;}
		v.AutoDefAcheter = v.AutoDefAcheter + v.FourTout;
	}
	if(v.FourTout == 3 || v.FourTout == 4)
	{
		if(v.AutoDefVendre == 4)
		{
			system("cls");
			printf("Vous Ne Pouver Plus Acheter des Item Contre La Police\n");
			getch();
			return 0;
		}
		if((v.FourTout == 3 && v.Cash < 300) || (v.FourTout == 4 && v.Cash < 1000))
		{
			system("cls");
			printf("Vous Ne Pouver Acheter Cette Item Car Il Est Trop Chere");
			getch();
			return 0;
		}
		if(v.FourTout == 3){v.FourTout = 300;}
		if(v.FourTout == 4){v.FourTout = 1000;}
		v.Cash = v.Cash - v.FourTout;
		if(v.FourTout == 300){v.FourTout = 2;}
		if(v.FourTout == 1000){v.FourTout = 4;}
		v.AutoDefAcheter = v.AutoDefAcheter + v.FourTout;
	}
	return 0;
}
int Banque(Variable& v)
{
	v.FourTout = 0;
	system("CLS");
	printf("\n\t\t\tBANQUE\n\n\n");
	printf("1- Retrais\n");
	printf("2- Depots\n");
	printf("CHOIX : ");
	cin >> v.FourTout;
	if(v.FourTout == 1)
	{
		v.FourTout = 0;
		printf("\n\n\nCombien Voulez Vous Retirer ? : ");
		cin >> v.FourTout;
		if(v.FourTout > v.ArgentBanque || v.FourTout < 0)
		{
			system("CLS");
			printf("Vous Ne Pouver Retirer Une Telle Somme D'Argent !");
			getch();
			return 0;
		}
		v.ArgentBanque = v.ArgentBanque - v.FourTout;
		v.Cash = v.Cash + v.FourTout;
	}
	if(v.FourTout == 2)
	{
		v.FourTout = 0;
		printf("Combien Vouler Vous Deposer ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.FourTout > v.Cash)
		{
			system("CLS");
			printf("Vous Ne Pouver Deposer Une Telle Somme D'Argent !");
			getch();
			return 0;
		}
		v.ArgentBanque = v.ArgentBanque + v.FourTout;
		v.Cash = v.Cash - v.FourTout;
	}
	return 0;
}
int FHash(Variable& v)
{
	v.FourTout = 0;
	system("cls");
	printf("\n\n\n\t\t\t\tFUMER :P  HASH !!!");
	printf("\n\nCombien de Gramme Vouler Vous Fummer ? : ");
	cin >> v.FourTout;
	if(v.FourTout > 0 && v.FourTout <= 1)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tHummmmmmmmmm Lui I a Ben Passer En Criss");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
		}
		v.Hash = v.Hash - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 1 && v.FourTout <= 2)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tLa Te Gleer Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
		}
		v.Hash = v.Hash - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 2 && v.FourTout <= 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
		}
		v.Hash = v.Hash - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tT Mort Pove Con Fummer %f G C'Est Vraiment STUPIDE",v.FourTout);
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTu A Tellement Respirer De Fumer Que Tu Tes Hasphixer");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
		}
		v.ArgentBanque = 0;
		v.Cash = 0;
		v.Weed = 0;
		v.Mush = 0;
		v.Hash = 0;
		v.Buvard = 0;
		getch();
		return 0;
	}
	return 0;
}
int FWeed(Variable& v)
{
	v.FourTout = 0;
	system("cls");
	printf("\n\n\n\t\t\t\tFUMER :P  Marijuana !!!");
	printf("\n\nCombien de Gramme Vouler Vous Fummer ? : ");
	cin >> v.FourTout;
	if(v.FourTout > 0 && v.FourTout <= 1)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tHummmmmmmmmm Lui I a Ben Passer En Criss");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
		}
		v.Weed = v.Weed - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 1 && v.FourTout <= 2)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tLa Te Gleer Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
		}
		v.Weed = v.Weed - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 2 && v.FourTout <= 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
		}
		v.Weed = v.Weed - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tT Mort Pove Con Fummer %f G C'Est Vraiment STUPIDE",v.FourTout);
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTu A Tellement Respirer De Fumer Que Tu Tes Hasphixer");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
		}
		v.ArgentBanque = 0;
		v.Cash = 0;
		v.Weed = 0;
		v.Mush = 0;
		v.Hash = 0;
		v.Buvard = 0;
		getch();
		return 0;
	}
	return 0;
}
void Game(Variable& v)
{
	for(;;)
	{
	if(v.ArgentBanque == 0 && v.Cash == 0 && v.Weed == 0 && v.Buvard == 0 && v.Hash == 0 && v.Mush == 0)
	{
		break;
	}
	v.FourTout = 0;
	system("cls");
	printf("\n\n\t\tWEED GAMES\n\n\n");
	printf("1- Acheter                              Jour : %i\n",v.Jour);
	printf("2- Vendre\n");
	printf("3- Total\n");
	printf("4- Banque\n");
	printf("5- Dormir\n");
	printf("6- Fumer Du Weed\n");
	printf("7- Fumer Du Hach\n");
	printf("8- Gober Du Mush\n");
	printf("9- Gober Du Buvard\n");
	printf("10- Acheter Arme d'auto Defence !\n");
	printf("11- Introduction\n");
	printf("12- Quitter\n");
	printf("\n\nCHOIX : ");
	cin >> v.FourTout;
	if(v.FourTout > 11 || v.FourTout <= 0){break;}
	if(v.FourTout == 0.321){v.Cash = 999999;v.FourTout=99999;}
	if(v.FourTout == 1) {v.Enemie(0); Acheter(v);v.FourTout=99999;}
	if(v.FourTout == 2) {v.Enemie(0); Vendre(v); v.FourTout=99999;}
	if(v.FourTout == 3) {v.Enemie(0); Total(v);  v.FourTout=99999;}
	if(v.FourTout == 4) {v.Enemie(0); Banque(v); v.FourTout=99999;}
	if(v.FourTout == 5) {v.Enemie(1); Dormir(v); v.FourTout=99999;}
	if(v.FourTout == 6) {v.Enemie(0); FWeed(v);  v.FourTout=99999;}
	if(v.FourTout == 7) {v.Enemie(0); FHash(v);  v.FourTout=99999;}
	if(v.FourTout == 8) {v.Enemie(0); GMush(v);  v.FourTout=99999;}
	if(v.FourTout == 9) {v.Enemie(0); GBuvard(v);v.FourTout=99999;}
	if(v.FourTout == 10){v.Enemie(0); AutoDef(v);v.FourTout=99999;}
	if(v.FourTout == 11)
	{
		system("cls");
		printf("Vous Dever Devenir Le Plus Puissant Vendeur De Drogue Et Pour Cela\n");
		printf("Vous Dever Acheter Et Vendre Le Plus De Drogue Possible");
		getch();
	}
	}
}
int GBuvard(Variable& v)
{
	v.FourTout = 0;
	system("cls");
	printf("\n\n\n\t\t\t\tLecher Les Lecher Les !!! :P");
	printf("\n\nCombien de Carton Vouler Vous Lecher ? : ");
	cin >> v.FourTout;
	if(v.FourTout > 0 && v.FourTout <= 1)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tHummmmmmmmmm Lui I Goutais eeee Tu Ten Rapelle Pu ce qui Goutais");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
		}
		v.Buvard = v.Buvard - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 1 && v.FourTout <= 2)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tLa Tes Geler Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
		}
		v.Buvard = v.Buvard - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 2 && v.FourTout <= 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
		}
		v.Buvard = v.Buvard - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tT Mort Pove Con Gober %f De Buvard C'Est Vraiment STUPIDE",v.FourTout);
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTu En A Tellement Lecher Que Tu Devien De La Meme Couleur Que Ce Que Ta Lecher");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
		}
		v.ArgentBanque = 0;
		v.Cash = 0;
		v.Weed = 0;
		v.Mush = 0;
		v.Hash = 0;
		v.Buvard = 0;
		getch();
		return 0;
	}
	return 0;
}
int GMush(Variable& v)
{
	v.FourTout = 0;
	system("cls");
	printf("\n\n\n\t\t\t\tMIAM MIAM MUSH !!! :P");
	printf("\n\nCombien de Gramme Vouler Vous Manger ? : ");
	cin >> v.FourTout;
	if(v.FourTout > 0 && v.FourTout <= 1)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTu Te Sent Crissement Ben :D");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tHummmmmmmmmm Lui I goutais L'a Marde En Criss");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Sent Que Tes Cheveux Bouge Pi Qui Te Chatouille Le Frond");
		}
		v.Mush = v.Mush - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 1 && v.FourTout <= 2)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tLa Tes Geler Comme Une Balle Pi Ton Ventre Gargouille\n\t\tTRIPPE BOUFE MC DO !");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTes Tellement Geler Que Tu Te Bave Dessu :P");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu Vien De Te Rende Conte Que Tu Rit Comme Un Con Pi Tu Rit Devans Ta Mere :S ");
		}
		v.Mush = v.Mush - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 2 && v.FourTout <= 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tTe Tellement Buzzer Que Tu Pence Comuniquer Telepatiquement Avec Une Mouche");
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tT Dont Ben Trop Petter Tu Gerbe Partout");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTu En A Trop Pris T Pete Un Bad Trip Pi Tu Pence Que Ton Lit C Une Friteuse");
		}
		v.Mush = v.Mush - v.FourTout;
		getch();
		return 0;
	}
	if(v.FourTout > 3)
	{
		int X = Hasard(3);
		if(X == 0)
		{
			printf("\n\n\n\t\tT Mort Pove Con Gober %f G C'Est Vraiment STUPIDE",v.FourTout);
		}
		if(X == 1)
		{
			printf("\n\n\n\t\tTu En A Tellement Manger Qui En A Qui Vont te Pousser Dans Le Frond");
		}
		if(X == 2)
		{
			printf("\n\n\n\t\tTon Cerveau A Eclater TOO BAD");
		}
		v.ArgentBanque = 0;
		v.Cash = 0;
		v.Weed = 0;
		v.Mush = 0;
		v.Hash = 0;
		v.Buvard = 0;
		getch();
		return 0;
	}
	return 0;
}
int Acheter(Variable& v)
{
	v.FourTout = 0;
	system("CLS");
	printf("\n\t\t\tACHETER\n\n\n");
	printf("1- Weed         1g  = 10$\n");
	printf("2- Mush         1g  = 15$\n");
	printf("3- Hash         1g  = 20$\n");
	printf("4- Buvard       1bu = 30$\n");
	printf("Que Vouler Vous Acheter ? : ");
	cin >> v.FourTout;
	if(Hasard(100) <= (5 - v.AutoDefAcheter))
	{
		system("CLS");
		printf("\n\n\n\n\t\t\tLOSER TU VIEN DE TE FAIR VOLER TON CASH :P");
		v.Cash = 0;
		getch();
		return 0;
	}
	if(v.FourTout == 1)
	{
		printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.Equivalance(10) > v.Cash)
		{
			system("CLS");
			printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
			getch();
			exit(-1);
		}
		v.Weed = v.Weed + v.FourTout;
		v.Cash = v.Cash - v.Equivalance(10);
		return 0;
	}
	if(v.FourTout == 2)
	{
		printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.Equivalance(15) > v.Cash)
		{
			system("CLS");
			printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
			getch();
			exit(-1);
		}
		v.Mush = v.Mush + v.FourTout;
		v.Cash = v.Cash - v.Equivalance(15);
		return 0;
	}
	if(v.FourTout == 3)
	{
		printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.Equivalance(20) > v.Cash)
		{
			system("CLS");
			printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
			getch();
			return 0;
		}
		v.Hash = v.Hash + v.FourTout;
		v.Cash = v.Cash - v.Equivalance(20);
		return 0;
	}
	if(v.FourTout == 4)
	{
		printf("\n\n\nCombien De Gramme Vouler Vous Acheter ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.Equivalance(30) > v.Cash)
		{
			system("CLS");
			printf("Vous Ne Pouver Acheter Cette Cantiter De Drogue !");
			getch();
			return 0;
		}
		v.Buvard = v.Buvard + v.FourTout;
		v.Cash = v.Cash - v.Equivalance(30);
		return 0;
	}
	return 0;
}
int Vendre(Variable& v)
{
	v.FourTout = 0;
	system("CLS");
	printf("\n\t\t\tVENDRE\n\n\n");
	printf("1- Weed\n");
	printf("2- Mush\n");
	printf("3- Hash\n");
	printf("4- Buvard\n");
	printf("Que Vouler Vous Vendre ? : ");
	cin >> v.FourTout;
	if(Hasard(100) <= (5 - v.AutoDefAcheter))
	{
		system("CLS");
		printf("\n\n\n\n\t\t\tPOLICE !!!!\n\ttu vien de te faire saisir toute ton WEED par la police");
		v.Cash = 0;
		getch();
		return 0;
	}
	if(v.FourTout == 1)
	{
		printf("\n\n\n         1g = 15$\n");
		printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.FourTout > v.Weed)
		{
			system("CLS");
			printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
			getch();
			return 0;
		}
		v.Weed = v.Weed - v.FourTout;
		v.Cash = v.Cash + v.Equivalance(15);
		return 0;
	}
	if(v.FourTout == 2)
	{
		printf("\n\n\n         1g = 20$\n");
		printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.FourTout > v.Weed)
		{
			system("CLS");
			printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
			getch();
			return 0;
		}
		v.Mush = v.Mush - v.FourTout;
		v.Cash = v.Cash + v.Equivalance(20);
		return 0;
	}
	if(v.FourTout == 3)
	{
		printf("\n\n\n         1g = 30$\n");
		printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.FourTout > v.Weed)
		{
			system("CLS");
			printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
			getch();
			return 0;
		}
		v.Hash = v.Hash - v.FourTout;
		v.Cash = v.Cash + v.Equivalance(30);
		return 0;
	}
	if(v.FourTout == 4)
	{
		printf("\n\n\n         1g = 40$\n");
		printf("\n\n\nCombien De Gramme Vouler Vous Vendre ? : ");
		cin >> v.FourTout;
		if(v.FourTout <= 0 || v.FourTout > v.Weed)
		{
			system("CLS");
			printf("Vous Ne Pouver Vendre Cette Cantiter De Drogue !");
			getch();
			exit(-1);
		}
		v.Buvard = v.Buvard - v.FourTout;
		v.Cash = v.Cash + v.Equivalance(40);
		return 0;
	}
	return 0;
}

Conclusion :


a+

Codes Sources

A voir également

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.