SA-MP Forums Archive
SUBMISSION key help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SUBMISSION key help (/showthread.php?tid=92257)



SUBMISSION key help - Eazy_E214 - 19.08.2009

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys & SUBMISSION)) {
if(!IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,0xE0F1E4FF,"Fehler:Du brauchst ein Auto.");
return 1;
}
new playervehiclemodel = GetVehicleModel(GetPlayerVehicleID(playerid));
if(playervehiclemodel == 581 || playervehiclemodel == 523 || playervehiclemodel == 462 || playervehiclemodel == 521 || playervehiclemodel == 463 || playervehiclemodel == 522 || playervehiclemodel == 461 || playervehiclemodel == 448 || playervehiclemodel == 468 || playervehiclemodel == 586 || playervehiclemodel == 509 || playervehiclemodel == 481 || playervehiclemodel == 510)
{
SendClientMessage(playerid,0xE0F1E4FF,"Fehler:Nitro geht nicht auf einem Bike");
return 1;
}
SendClientMessage(playerid,0xE0F1E4FF,"Nitro eingespritzt");
AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
return 1;
}
return 1;
}
Код:
C:\DOKUME~1\Igor\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(577) : error 017: undefined symbol "SUBMISSION"
help


Re: SUBMISSION key help - Correlli - 19.08.2009

SUBMISSION doesn't exist, it could be your own define which isn't defined, anyway, here are the list of keys for 0.2X:
https://sampwiki.blast.hk/wiki/GetPlayerKeys#Key_List

So, it's: KEY_SUBMISSION


Re: SUBMISSION key help - Eazy_E214 - 19.08.2009

thanks works