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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.