Szerző Téma: Kocsijavítás (PRESSED error)  (Megtekintve 478 alkalommal)

Nem elérhető Shady

  • 313
    • Profil megtekintése
Kocsijavítás (PRESSED error)
« Dátum: 2013. Augusztus 02. - 19:40:35 »
0 Show voters
Sziasztok.
Próbáltam írni egy kocsijavítást de a PRESSED-et nem ismeri a pawnom:
 
...pwn(583) : error 017: undefined symbol \"PRESSED\"

 
itt a kódom:
 
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
      if(PRESSED(KEY_SUBMISSION)) {
       new vehicleid = GetPlayerVehicleID(playerid);
       if(IsPlayerInVehicle(playerid, vehicleid))
       {
             SetVehicleHealth(vehicleid,1000.0);
             PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
             RepairVehicle(GetPlayerVehicleID(playerid));
        }
        return 1;
}
      return 0;
}

Kocsijavítás (PRESSED error)
« Válasz #1 Dátum: 2013. Augusztus 02. - 19:54:48 »
+1 Show voters
Ez megvan?
 
#define PRESSED(%0) \\
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

Nem elérhető BoOy

  • 3209
  • 2013-as év szkriptere
    • Profil megtekintése
Kocsijavítás (PRESSED error)
« Válasz #2 Dátum: 2013. Augusztus 02. - 20:10:46 »
+1 Show voters
Idézetet írta: Ryan_Adam date=1375466088\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"40805\" data-ipsquote-contentclass=\"forums_Topic
Ez megvan?
 
#define PRESSED(%0) \\
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

 

Persze hogy nincs :D

Nem elérhető Shady

  • 313
    • Profil megtekintése
Kocsijavítás (PRESSED error)
« Válasz #3 Dátum: 2013. Augusztus 02. - 20:18:10 »
0 Show voters
Nem volt beállítva .. télleg :D .. Kösz


+1

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal