Search Results
Code: foreach(Player, i) is the old way to use foreach. Code: foreach(new i:Player) is how you'd want to do it.
510
Which line is 890? The issue could come from the fact that -if i'm not mistaken-, unless you store the player's name before he disconnects, GetName can't access the player's name anymore as he disconn...
717
Take a look at this (especially the ooc command which you can easily change to suit your needs) https://sampforum.blast.hk/showthread.php?tid=280476
392
Quote: But i assume it would work since there are functions from where i can get values from the vehicles that are saved in the table. Which ones are you talking about? Again wit...
686
The code you've written. If you copy pasted what I wrote above you won't get anything, as there's no cache_get function at all.
686
Show the whole thing you've got. Anyways, if you try to load using this query, you won't see anything for sure, gta sa modelids range from 400 to 600 smth, Quote: `vehmodel` = 0 ...
686
The proper way to write it using SQL is to use "AND" and not using commas. Code: SELECT * FROM `vehicles` WHERE `vehmodel` = 0 AND `vehcolor1` = 0 AND...
686
The way you wrote it is wrong already. The way you should do it is: 1. Have the top part under OnGameModeInit: Code: public OnGameModeInit() { new query[1000], vehiclecolor1, vehiclecolor2, Float:...
686
Little correction, random's range is [0, max-1], so random(12) will never give out 12. If you want it to be the case, just change it to random(13)
549
Code: new rand = random(5); { and there others random } what are the point of having the brackets here? Does it even compile? Anyway, if you're having a random number calculated everytime, why not d...
503
Honestly do you think a bunch of errors will magically help us fix your code? Did you ever try to fix errors without anything shown? Maybe you have some powers which allows you to guess other people's...
644
I don't exactly get what you're trying to achieve. This part: Code: new string[128]; for(new i = 0; i < MAX_PLAYERS; i ++) if(IsPlayerInVehicle(i, GetPlayerVehicleID(i))) SendClientMessage(playeri...
341
What is it with all the people requesting command like it's a script request forum... You didn't even give a proper explanation of what your command is supposed to do. Post whatever code snippet you a...
341
You should use %e instead of %s or escape the string first to avoid any SQL Injection.
352
"GetPlayerHealth and GetPlayerArmour will return the old amounts of the player before this callback." Taken from the wiki. I would then imagine if the player has 100 HP, every SetPlayerHealth(playerid...
396
This should allow you to https://sampforum.blast.hk/showthread.php?tid=563387 return 0 for the knife.
247
Quote: Originally Posted by Shadow0707 Coordinates mean checkpoint? if yes, check this Here For Freezing Here and for timer Here and for repairing vehicle Here pawn Code: Pay(playerid, C...
262