Help about Auto LicensePlate
#5

heres my code for onplayer login
loop for vehicle
PHP код:
    for(new 0MAX_PLAYERVEHICLESv++)
                    {
                        
format(string128"pv%dPosX",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvPosX] = floatstrval ); }
                        
format(string128"pv%dPosY",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvPosY] = floatstrval ); }
                        
format(string128"pv%dPosZ",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvPosZ] = floatstrval ); }
                        
format(string128"pv%dPosAngle",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvPosAngle] = floatstrval ); }
                        
format(string128"pv%dModelId",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvModelId] = strvalval ); }
                        
format(string128"pv%dLock",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvLock] = strvalval ); }
                        
format(string128"pv%dLocked",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvLocked] = strvalval ); }
                        
format(string128"pv%dPaintJob",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvPaintJob] = strvalval ); }
                        
format(string128"pv%dColor1",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvColor1] = strvalval ); }
                        
format(string128"pv%dColor2",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvColor2] = strvalval ); }
                        
format(string128"pv%dPrice",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvPrice] = strvalval ); }
                        
format(string128"pv%dTicket",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvTicket] = strvalval ); }
                        
format(string128"pv%dWeapon0",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvWeapons][0] = strvalval ); }
                        
format(string128"pv%dWeapon1",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvWeapons][1] = strvalval ); }
                        
format(string128"pv%dWeapon2",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvWeapons][2] = strvalval ); }
                        
format(string128"pv%dWepUpgrade",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvWepUpgrade] = strvalval ); }
                        
format(string128"pv%dFuel",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvFuel] = floatstrval ); }
                        
format(string128"pv%dImpound",v);
                        if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvImpounded] = strvalval ); }
                        
                        for(new 
0MAX_MODSm++)
                        {
                            
format(string128"pv%dMod%d"vm);
                            if( 
strcmpkey string true ) == ) { val ini_GetValueData ); PlayerVehicleInfo[playerid][v][pvMods][m] = strvalval ); }
                        }
                       
                    } 
Reply


Messages In This Thread
Help about Auto LicensePlate - by PRoleplay - 24.11.2012, 16:38
Re: Help about Auto LicensePlate - by dr.lozer - 24.11.2012, 16:55
Re : Help about Auto LicensePlate - by PRoleplay - 24.11.2012, 17:19
Re: Help about Auto LicensePlate - by Richie© - 24.11.2012, 17:27
Re : Help about Auto LicensePlate - by PRoleplay - 24.11.2012, 18:34
Re : Help about Auto LicensePlate - by PRoleplay - 25.11.2012, 04:52
Re : Help about Auto LicensePlate - by PRoleplay - 25.11.2012, 13:37
Re: Help about Auto LicensePlate - by maramizo - 25.11.2012, 14:29

Forum Jump:


Users browsing this thread: 2 Guest(s)