Sziasztok !!!
van egy kis problémám e q gombal kocsit akarok váltani de nem megy:(
#define PRESSED(%0) \\
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(pickupidje[playerid] == 1)
{
new id[MAX_PLAYERS];
if(PRESSED(256))
{
id[playerid]--;
SendClientMessage(playerid, -1, \"LEFT\");
CreateVehicle(carid[id[playerid]], 2038.045166,1351.679077,10.2887,180.0, 1, 1,90000);
}
if(PRESSED(64))
{
id[playerid]++;
SendClientMessage(playerid, -1, \"right\");
CreateVehicle(carid[id[playerid]], 2038.045166,1351.679077,10.2887,180.0, 1, 1,90000);
}
}
return 1;
}
miért nem csinál semmítse?