10.09.2013, 19:23
O.K...
But if i only want to have one of them like.
But it will not work for me i get a error:
But if i only want to have one of them like.
Код:
if(dialogid == DIALOG_BUYWEAPONS) { if(response) // If they clicked 'Select' or double-clicked a weapon { // Give them the weapon if(listitem == 0) // They selected the first item - Desert Eagle { GivePlayerWeapon(playerid, WEAPON_DEAGLE, 50); // Give them a desert eagle } if(listitem == 1) // They selected the second item - AK-47 { GivePlayerWeapon(playerid, 22, 50); // Give them an AK-47 } if(listitem == 2) // They selected the third item - Desert Eagle { GivePlayerWeapon(playerid, 31, 750); // Give them a Combat Shotgun if(GetPlayerWantedLevel(playerid) > 2) } } return 1; }
PHP код:
C:\Users\Canip\Desktop\Samp server\filterscripts\Gates.pwn(467) : error 036: empty statement