Search Results
I just developed a business system using dynamic dialogs. Menus are outdated in my opinion
218
Code: SetPVarInt(playerid, "Money", 1000); Code: if(GetPVarInt(playerid, "Money") == 1000) { // You have $1000! } else { // You don't have $1000! } https://sampwiki.blast.hk/wiki/Per-player_va...
310
Why are you using menus instead of dialogs? Just wondering...
218
Quote: for(new i = 0; i < MAX_PLAYERS; i++) Above goes through each player. Below checks to see if the player has >= 1 LSPDLEVEL Quote: if(PlayerInfo[playerid][...
372
Nope. You would put it under OnPlayerCommandText
372
Код: new lspd_online = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[playerid][LSPDLEVEL] >= 1) { lspd_online++; } } format(string, sizeof(string), "There are %d lspd members ...
372
Great, thanks! Solution = placing string where the menu options are, and defining string with the options on a different line.
196
Код: ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Menu","Items","Select", "Cancel"); Where items is actually about 30 item names. Getting Errors: error 075: input line too long (after substi...
196
What are the limits, if any, for dialogs?
273
Quote: Originally Posted by rohan234 ofcourse! replay function! +1 Fail @ Joe Torran C: No, not possible. You can spec the player that killed you while you are waiting to respawn, bu...
330
Lazy = Fail If you're lazy about indenting, it's very likely that your script lacks quality too.
216
Paste the code around that line so we can help. It basically means that you didn't indent the code where you should have...
216
For example, an object falling from the sky. If you set it at 100, 100, 10000 (very high)... how could you script it to drop at ground level if you don't know where ground level is for a position? Th...
270
Does anyone know how to drop an object to the ground at a given X,Y position without knowing the Z?
270
I have CreateVehicle that creates a car. Its respawn time is set to -1 (no respawn). The car blew up. Each time I leave the area, and return (OnVehicleStreamIn) it catches fire and blows up. Should...
109
What include do you need for the SetPlayerMoney function?
151
Quote: undefined symbol "SetPlayerMoney" Where do you get SetPlayerMoney?
242
Thanks. Bay is correct What if you add a component that the vehicle doesn't support... but it is a valid component? Crash or does it just fail to add it?
364
Does a player have to be in the vehicle you are AddVehicleComponent to?
364