Any idea ?
#1

Hello,

With this code:

Код:
new vehid1 = 1;
AddCar(model1,Float:X,Float:Y,Float:Z,Float:A,color11,color12) {
	VehicleInfo[vehid1][Def_X] = X;
	VehicleInfo[vehid1][Def_Y] = Y;
	VehicleInfo[vehid1][Def_Z] = Z;
	VehicleInfo[vehid1][Def_A] = A;
    if(VehicleID1[vehid1] == 0) {
    new Query[350],Cost;
	Cost = 50000;
    for(new s=0; s<24; s++) {
      if(model1 == heavycar[s]) {
       	Cost = 100000;
   	    }
	  }
	for(new a=0; a<11; a++) {
     	if(model1 == boat[a]) {
       		Cost = 50000;
   	   		}
		}
	for(new mb=0; mb<11; mb++) {
	     if(model1 == mbike[mb]) {
   	    	Cost = 40000;
	   	    }
		 }
	for(new d=0; d<3; d++) {
   		if(model1 == pbike[d]) {
       		Cost = 3000;
   	   		}
		}
	for(new e=0; e<6; e++) {
    	 if(model1 == splane[e]) {
       		Cost = 500000;
   	        }
		}
	for(new f=0; f<2; f++) {
     	if(model1 == mplane[f]) {
       		Cost = 1500000;
   	    	}
		}
	for(new v=0; v<2; v++) {
     	if(model1 == lplane[v]) {
       		Cost = 2000000;
   	    	}
		}
	for(new n=0; n<4; n++) {
     	if(model1 == milair[n]) {
       		Cost = 4000000;
   	        }
		}
	for(new j=0; j<4; j++) {
     	if(model1 == sheli[j]) {
       		Cost = 750000;
   	        }
		}
	for(new k=0; k<3; k++) {
     	if(model1 == lheli[k]) {
       		Cost = 1250000;
   	        }
		}
    format(Query, sizeof(Query),"INSERT INTO `vehicles`(`id`,`model`,`X`,`Y`,`Z`,`A`,`col1`,`col2`,`paintjob`,owned,owner,price,sprice,security,buyable,vName,Engine,Engines) VALUES \
	('%d','%d','%f','%f','%f','%f','%d','%d','%d','%d','%s','%d','%d','%d','%d','%s',0,0)",vehid1,model1,X,Y,Z,A,color11,color12,-1,0,"NULL",Cost,Cost,0,1,VehicleNames[model1 - 400]);
	mysql_tquery(mysql, Query, "", "");
	print("-");
    print("--------------Vehicle Created--------------");
    printf("- Carid: %d", vehid1);
    printf("- Buy Cost: %d",Cost);
    printf("- Sell Cost: %d",Cost);
    printf("- Interior: 0");
    printf("- VirtualWorld: 0");
    print("-----------------------------------------");
    }
    return vehid1 ++;
}
Have you got any idea how to turn it into Dini ? Instead of Mysql?
Reply
#2

Why would you convert a MYSQL gm to a DINI gm?

With MYSQL,you got a LOT MORE options..
Reply
#3

I said that i want. If you can't help me, Don't answer.
Reply
#4

Can someone answer ? Thanks
Reply
#5

Quote:
Originally Posted by Knowinne
Посмотреть сообщение
I said that i want. If you can't help me, Don't answer.
Sorry master, This is not a request code section.
Reply
#6

Okay I thought that it was
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)