Szerző Téma: Itt kérdezz warningot/error -t!  (Megtekintve 125074 alkalommal)

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1335 Dátum: 2017. Augusztus 09. - 23:28:44 »
0
másold be azt a sort

Itt kérdezz warningot/error -t!
« Válasz #1336 Dátum: 2017. Augusztus 24. - 21:34:53 »
0
Mi lehet a baj?
 
 
 
C:\\Users\\Lenovo\\Downloads\\valami\\gamemodes\\Roleplay.pwn(12953) : error 025: function heading differs from prototype
C:\\Users\\Lenovo\\Downloads\\valami\\gamemodes\\Roleplay.pwn(12971) : error 017: undefined symbol \"isseruid\"
 
 
 
az erroros pedig:
 

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    new Float:HP;
    GetPlayerHealth(playerid, HP);
    switch(weaponid)
    {
        case 4: SetPlayerHealth(playerid, HP-30.0);
        case 22: SetPlayerHealth(playerid, HP-25.0);
        case 32: SetPlayerHealth(playerid, HP-25.0);
        case 28: SetPlayerHealth(playerid, HP-25.0);
        case 30: SetPlayerHealth(playerid, HP-30.0);
        case 31: SetPlayerHealth(playerid, HP-21.0);
        case 34: SetPlayerHealth(playerid, HP-70.0);
        case 29: SetPlayerHealth(playerid, HP-25.0);
        case 25: SetPlayerHealth(playerid, HP-40.0);
    }
    if(isseruid != INVALID_PLAYER_ID)
    {
        if(isValidWeaponForSpecialHit(weaponid))
        {
            switch(bodypart)
            {
                case 3: sInfo[playerid][Chest] += 1;
                case 4: sInfo[playerid][Crotch] += 1;
                case 5: sInfo[playerid][LArm] += 1;
                case 6: sInfo[playerid][RArm] += 1;
                case 7: sInfo[playerid][LLeg] += 1;
                case 8: sInfo[playerid][RLeg] += 1;
                case 9:
                {
                    SetPlayerHealth(playerid, HP-70.0);
                    sInfo[playerid][Head] += 1;
                }
            }
        }
    }
}
isValidWeaponForSpecialHit(weaponid)
{
    return (weaponid == 22 || weaponid == 23 || weaponid == 24 || weaponid == 25 || weaponid == 26 || weaponid == 27 || weaponid == 28 || weaponid == 29 || weaponid == 30 || weaponid == 31 || weaponid == 32 || weaponid == 33 || weaponid == 34);
}

 
 

Itt kérdezz warningot/error -t!
« Válasz #1337 Dátum: 2017. Augusztus 24. - 23:05:57 »
0
issuerid * Ezt rontottad el, a függvény fejlécében így van megadva, akkor máshova is így kell írni :)

Itt kérdezz warningot/error -t!
« Válasz #1338 Dátum: 2017. Augusztus 25. - 14:40:22 »
0
C:\\Users\\Lenovo\\Downloads\\valami\\gamemodes\\Roleplay.pwn(12953) : error 025: function heading differs from prototype
 
 
 
ez az error még mindig megvan :(

Nem elérhető gbr333

  • 670
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1339 Dátum: 2017. Augusztus 25. - 15:13:14 »
0
Használd a legfrissebb a_samp includeot.
 
LINK

Itt kérdezz warningot/error -t!
« Válasz #1340 Dátum: 2017. Augusztus 26. - 11:29:10 »
0
A legfrisebbet leszedtem, úgy is ugyanaz az error van.
 
 

Itt kérdezz warningot/error -t!
« Válasz #1341 Dátum: 2017. Augusztus 26. - 11:29:47 »
0
A legfrisebbet leszedtem, úgy is ugyanaz az error van.
 
 

Itt kérdezz warningot/error -t!
« Válasz #1342 Dátum: 2017. Augusztus 26. - 12:29:04 »
0
YSI-t használsz, mert ha igen, akkor azoknak az Includekben is átkell írni a prototype-t. Hogyha nem akkor meg töltsd le egy full új www.sa-mp.com-ról egy Server Package-t és abba próbáld ki müködnie kell.

Itt kérdezz warningot/error -t!
« Válasz #1343 Dátum: 2017. Augusztus 26. - 22:44:09 »
0
Tudnál segíteni a ysiben? Igen, használom, csak nem tudom mit hogy kéne átírni :(
 
 

Itt kérdezz warningot/error -t!
« Válasz #1344 Dátum: 2017. Szeptember 15. - 06:24:05 »
0
Sziasztok proxy_sa-val van gondom nem enged fel szerverekre. Letöröltem a mappát is , és ujra lett telepitve az mta is, valaki valami okosságot?

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1345 Dátum: 2017. Szeptember 15. - 08:07:35 »
0
máskor nem kell proxy_sa -t használni, amúgy letörlésnél a dokumentumok nem törlődnek, külön kell törölni őket csak úgy megsúgom. 

Itt kérdezz warningot/error -t!
« Válasz #1346 Dátum: 2017. Szeptember 15. - 09:41:59 »
0
 
 
Idézetet írta: ZyZu date=1505455655


   
      máskor nem kell proxy_sa -t használni, amúgy letörlésnél a dokumentumok nem törlődnek, külön kell törölni őket csak úgy megsúgom. 
   


Gondolom crash-el a proxy_sa.exe miatt. Nem önszántából használja.

Itt kérdezz warningot/error -t!
« Válasz #1347 Dátum: 2017. November 11. - 14:37:53 »
0

if (!strcmp(valasztek, \"1\", true) == 0)




   
       error 035: argument type mismatch (argument 1)
   

[/quote]
 
Mit rontottam el?

Nem elérhető gbr333

  • 670
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1348 Dátum: 2017. November 11. - 15:13:56 »
0

   new valasztek[2] = \"1\";
if(!strcmp(valasztek, \"1\", true))
{
       print(\"valasztek = 1\");
}

 
 

Itt kérdezz warningot/error -t!
« Válasz #1349 Dátum: 2017. November 11. - 17:15:19 »
0
köszi szépen
 
 

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal