08.03.2015, 07:46
PHP код:
new sx[100];
if(strcmp(INI_String(s,"Owner"),"none",true) == 0){
format(HouseInfo[HouseCount][Vlastnik],MAX_PLAYER_NAME,"Nikto");
HouseInfo[HouseCount][Zamek] = 0;
HouseInfo[HouseCount][Pickup] = CreatePickup(1273,1,pX, pY, pZ);
format(sx,100,"Dom č.%d\r\nMajiteľ: Nikto\r\nCena: %d",HouseCount,Cenik);
HouseInfo[HouseCount][Text] = Create3DTextLabel(sx,0xFF0000FF,pX,pY,pZ+1,50,0);
}else{
HouseInfo[HouseCount][Pickup] = CreatePickup(1272,1,pX, pY, pZ);
format(HouseInfo[HouseCount][Vlastnik],MAX_PLAYER_NAME,"%s",dini_Get(s,"Owner"));
HouseInfo[HouseCount][Zamek] = dini_Int(s,"Locked");
if(dini_Int(s,"Auto") == 1){
HouseInfo[HouseCount][Color1]=dini_Int(s,"Color1");
HouseInfo[HouseCount][Color2]=dini_Int(s,"Color2");
HouseInfo[HouseCount][Paintjob]=dini_Int(s,"Paintjob");
HouseInfo[HouseCount][Vmod][0]=dini_Int(s,"Tuning1");
HouseInfo[HouseCount][Vmod][1]=dini_Int(s,"Tuning2");
HouseInfo[HouseCount][Vmod][2]=dini_Int(s,"Tuning3");
HouseInfo[HouseCount][Vmod][3]=dini_Int(s,"Tuning4");
HouseInfo[HouseCount][Vmod][4]=dini_Int(s,"Tuning5");
HouseInfo[HouseCount][Vmod][5]=dini_Int(s,"Tuning6");
HouseInfo[HouseCount][Vmod][6]=dini_Int(s,"Tuning7");
HouseInfo[HouseCount][Vmod][7]=dini_Int(s,"Tuning8");
HouseInfo[HouseCount][Vmod][8]=dini_Int(s,"Tuning9");
HouseInfo[HouseCount][Vmod][9]=dini_Int(s,"Tuning10");
HouseInfo[HouseCount][Vmod][10]=dini_Int(s,"Tuning11");
HouseInfo[HouseCount][Vmod][11]=dini_Int(s,"Tuning12");
HouseInfo[HouseCount][Vmod][12]=dini_Int(s,"Tuning13");
HouseInfo[HouseCount][Vmod][13]=dini_Int(s,"Tuning14");
HouseInfo[HouseCount][Vmod][14]=dini_Int(s,"Tuning15");
HouseInfo[HouseCount][Vmod][15]=dini_Int(s,"Tuning16");
HouseInfo[HouseCount][Vmod][16]=dini_Int(s,"Tuning17");
HouseInfo[HouseCount][Vehicle] = CreateVehicle(dini_Int(s,"Vehicle"),vX,vY,vZ,vA,HouseInfo[HouseCount][Color1],HouseInfo[HouseCount][Color2],-1);
TuneThisCar(HouseCount,HouseInfo[HouseCount][Vehicle]);
printf("=====================\r\n%d",HouseInfo[HouseCount][Vehicle]);
}
format(sx,100,"Dom č.%d\r\nMajiteľ: %s",HouseCount,dini_Get(s,"Owner"));
HouseInfo[HouseCount][Text] = Create3DTextLabel(sx,0xFF0000FF,pX,pY,pZ+1,50,0);
}
I have to give you the whole script....?