Search Results
I meant to say jump table. EDIT: Nero_3D showed it.
70,271
The fastest method will surely be array lookup, but it will take a lot of memory. Код: new g_WeaponSlotTable[] = { /* ... */ }; #define WEAPON_SLOT_LOOKUP(%1) g_WeaponSlotTable[(%1)]
70,271
Quote: Originally Posted by Mikep. Quote: Originally Posted by BeckzyBoi native GetPlayerCameraUpVector(playerid, &Float, &Float:y, &Float:z); What is this? I b...
4,230
Quote: Originally Posted by RedShirt (JernejL) Quote: Originally Posted by Damian Quote: Originally Posted by Seif_ GetPlayerAmmo is still bugged. For some reason, ...
13,492
Quote: Originally Posted by SMX I've had a little look at those functions in SA-MP. My assembly knowledge is less than basic but I could tell that what I was discussing is not possible bec...
1,437
The only really good advantage PAWN has is - you don't need to do version for LiNUX and WiNDOWS.
1,437
Quote: Originally Posted by lrZ^ aka LarzI Lol, my bad -.- But anyway, in a var which there are several values, like 1, 2, 3, 4 and 5 If you check if the variable is TRUE, it won't be that...
39,594
Quote: Originally Posted by Calon IsPlayerInRangeOfVehicle pawn Код: public IsPlayerInRangeOfVehicle(playerid, vehicleid, radius){    new Float: CarPpX, Float: CarPpY, Float: CarPpZ...
70,271
Quote: Originally Posted by lrZ^ aka LarzI No, lol if (statement) is the same as if (statement == true) not if (statement == 1) Bool and integer's aren't the same, I'm afraid Bool and i...
39,594
Loading time depends on speed of CPU, they aren't loaded instantly because it takes time to calculate matrices(vectors and stuff like that) for every object. Projection, view matrix, etc. This type of...
122
It isn't because variable is just readable reference to memory location where data is. You can get variable as value or as reference.
157
Oh, It came to my mind that it will be even better on SAW idea to add creepy sound
411
I really like that SAW idea, thanks for sharing
411
If that's correct then it crash because stack error. I will look into code to find type of param it needs.
710
KillTimer 1st argument needs reference to timer. Example: new t_1 = SetTimer(/*params*/); KillTimer(t_1);
90
PAWN's Virtual Machine(VM) is written by C and ASM. PAWN is scripting language with C-like syntax. C & C++ are programming langugages. I hope you understand now.
156
Quote: Originally Posted by dice7 Isn't NULL \0 ? It's called NULL because it's decimal value is (0). NULL on end of string is written like \0 to escape 0 and then it is NULL. This is ...
171
C - ((void*)0) C++ - (0) Why did C defined 0 as void pointer ? Because it was used to empty pointer's address. And by the way, there is not pointers in PAWN because no newbie will be able to learn to...
171
Then you probably doing something wrong. Anyway try my method with SetPlayerTime. Код: typedef unsigned long DWORD; void vm_SetPlayerTime(int playerid, int hour, int minute) { DWORD ADDR_...
710