Jump to content
  • 0

Ajutor la include


Question

Posted

Salut,primesc aceste erori la include:

 

C:\Users\Cerbw\Desktop\gamemode GTA-SAMP\pawno\include\vehicleupgrade.inc(39) : error 029: invalid expression, assumed zero
C:\Users\Cerbw\Desktop\gamemode GTA-SAMP\pawno\include\vehicleupgrade.inc(39) : warning 215: expression has no effect
C:\Users\Cerbw\Desktop\gamemode GTA-SAMP\pawno\include\vehicleupgrade.inc(39) : error 001: expected token: ";", but found ")"
C:\Users\Cerbw\Desktop\gamemode GTA-SAMP\pawno\include\vehicleupgrade.inc(39) : error 029: invalid expression, assumed zero
C:\Users\Cerbw\Desktop\gamemode GTA-SAMP\pawno\include\vehicleupgrade.inc(39) : fatal error 107: too many error messages on one line

 

 

 

function Addspeedoncar(playerid) 
{
    if(vehsys == 0); return true;   //asta e linia 39
    new vehicleid, keys, Float:vx, Float:vy, Float:vz;

    foreach(new z : Player){
        if((vehicleid = GetPlayerVehicleID(playerid))) {
            if(IsAnOwnableCar(vehicleid)) {
                for(new i = 0; i < MAX_PERSONAL_VEHICLES; i++) {
                    if(PlayerInfo[z][pCarID][i] == vehicleid) {
                        if(PlayerInfo[z][pVitezamodificata][i] != 0) {
                            if(Carspeed(playerid) < (PlayerInfo[z][pVitezamodificata][i] + MySQLCheckSpeed(PlayerInfo[z][pCarModel][i]))) {
                                GetPlayerKeys(playerid, keys, _:vx, _:vx); 
                                if((keys & (vehForWard | vehBackWard | KEY_HANDBRAKE)) == vehForWard) {
                                     GetVehicleVelocity(vehicleid, vx, vy, vz);
                                    if(vx * vx + vy * vy < (0.4 * 0.4)) continue;
                                    vx *= 1.025;
                                    vy *= 1.025;
                                    SetVehicleVelocity(vehicleid, vx, vy, vz);
                                }
                            }
                        }
                        break;
                    }
                }
            }
        }
    }
    return true; 
}

6 answers to this question

Recommended Posts

  • 0
Posted
21 hours ago, nobilzeus said:

just what is this? MySQLCheckSpeed

un query non-threaded care ia o valoare din db

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.