Search Results
Quote: Originally Posted by Troydere I made an extensive search through my entire post, but I could not find the part where I tell the guy that using a variable was not good. Perhaps can y...
210
Quote: Originally Posted by Troydere Let the stars be whatever they want to be. Don't use the variable, do it like this: PHP код: if(GetPlayerWeapon(playerid) == 4 || GetPlaye...
210
https://sampwiki.blast.hk/wiki/MySQL/R40 EDIT: Didn't reload the page, sorry.
98
I'm on my phone so I can't really read the code and find the error, but do you have crashdetect installed? Here's an example of what I mean: Code: new array[5]; for (new i = 0; i <= 5; i++) { ...
419
Quote: Originally Posted by Vince It doesn't. This is known as buffer overflow. Retrieving a string from memory is basically saying: start reading at this address and continue reading unti...
494
It's not really a problem since I never actually do that, but it just happened by mistake and it got me wondering. Anyway, thank you for the replies.
494
I'm not talking about the compiler not detecting them, I'm talking about why the array actually holds that string, even though its length is bigger than the array's size.
494
Code: new array[10]; strcat(array, "12345678901", 12); // string is 11 characters printf("%s\nLen: %i", array, strlen(array)); Prints out: 12345678901 Len: 11 Why is that working? Attempting to do i...
494
Quote: Originally Posted by Dayrion There is some errors plus I don't like at all (it's personal) a code which is interlinked. PHP Code: CMD:uncuff(playerid, params[]) {     if(gT...
774
Quote: Originally Posted by Micko123 Okay but explain me then how is this working?? PHP Code: if(newkeys == KEY_SECONDARY_ATTACK)     {         new org, OrgID = OrgIn...
204
You're using "new a" which is always set to 0. Which means you have to be close to the ATM that's occupying index 0. You need to loop through your ATMs and check if the player is close to one of them...
204
Quote: Originally Posted by Dignity Since you saved me from creating my own thread, I'll hijack it with a question and also a possible example. Would this be a viable anti cheat? Please t...
556
Your loading is most likely bugged. I'm pretty sure Vince is right about Iter_Free. You're re-using the same index (Iter_Free returns the nearest 'free' index inside of the iterator) If you use it ju...
83
You should use y_text or something similar if you want to make a multi-lang system. But to answer your question, you can try doing this: Код: stock SS(playerid, color, eng[], ro[] = "") { if (ro...
74
https://sampwiki.blast.hk/wiki/Control_Structures#Operators
60
Post line#89 in "fuckCleo.inc" and some lines around it. Quote: Originally Posted by SeanDenZYR missing "}" ? i think? How exactly did you conclude that? It wouldn't even compile if a ...
126
Quote: Originally Posted by Jeffry Actually embedded colors do not support the alpha channel, means it's only 6 characters. Based on a color in format: 0xRRGGBBAA You have to pick: {RRGGB...
97
That's how AUTO_INCREMENT works. It doesn't re-use deleted indexes, it just adds one to the last value.
58
Quote: Originally Posted by IceBilizard PHP код: #define DIALOG_COMMANDS 1 CMD:commands(playerid, params[]) {     new string[1050];     format(string,sizeof(string), ...
185