AleX124 Posted May 3, 2013 Report Share Posted May 3, 2013 error 017: undefined symbol "PRESSED"Am adaugat in GM:// PRESSED(keys) #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) Link to comment Share on other sites More sharing options...
Diabolik Posted May 3, 2013 Report Share Posted May 3, 2013 Incearca:#define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP Link to comment Share on other sites More sharing options...
AleX124 Posted May 3, 2013 Author Report Share Posted May 3, 2013 La fel. Link to comment Share on other sites More sharing options...
[Funky]Anakin Posted May 3, 2013 Report Share Posted May 3, 2013 [pawn]#define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))[/pawn]citeste si http://wiki.sa-mp.com/wiki/OnPlayerKeyStateChange Link to comment Share on other sites More sharing options...
AleX124 Posted May 3, 2013 Author Report Share Posted May 3, 2013 Am citit . Aceeasi eroare. Link to comment Share on other sites More sharing options...
Staff Posted May 3, 2013 Report Share Posted May 3, 2013 #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) Daca tot asa e..arata ce ai la public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)legat de PRESSED. [glow=blue,2,300]SAMP.[glow=yellow,2,300]RSP-GAME[glow=red,2,300].NET[/glow][/glow][/glow] Link to comment Share on other sites More sharing options...
AleX124 Posted May 3, 2013 Author Report Share Posted May 3, 2013 [pawn]public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if (PRESSED(KEY_FIRE)) { if (IsPlayerInAnyVehicle(playerid)) { AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); } } return 1;}[/pawn] Link to comment Share on other sites More sharing options...
Staff Posted May 3, 2013 Report Share Posted May 3, 2013 public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if ( newkeys & KEY_FIRE ) { if (IsPlayerInAnyVehicle(playerid)) { AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); } } return 1; } [glow=blue,2,300]SAMP.[glow=yellow,2,300]RSP-GAME[glow=red,2,300].NET[/glow][/glow][/glow] Link to comment Share on other sites More sharing options...
AleX124 Posted May 3, 2013 Author Report Share Posted May 3, 2013 Thanks , merge.Imi puteti da si mie o lista cu keys din samp ? Link to comment Share on other sites More sharing options...
D@rksone Posted May 3, 2013 Report Share Posted May 3, 2013 Thanks , merge.Imi puteti da si mie o lista cu keys din samp ?Poftim http://wiki.sa-mp.com/wroot/index.php?title=Keys&redirect=no Rareori ne gândim la ceea ce avem, dar mereu la ceea ce ne lipseşte Link to comment Share on other sites More sharing options...
AleX124 Posted May 3, 2013 Author Report Share Posted May 3, 2013 Multumesc, rezolvat. Link to comment Share on other sites More sharing options...
Question
AleX124
error 017: undefined symbol "PRESSED"
Am adaugat in GM:
Link to comment
Share on other sites
10 answers to this question
Recommended Posts