Search Results
Quote: Originally Posted by Stinged Why do you reject using a macro? It does the job fine here. Код: #define function(%0,%1,%2) SendClientMessage(%0, COLOR_WHITE, "{"#%1"}Hello...
255
Quote: Originally Posted by SickAttack pawn Код: // ** INCLUDES#include <a_samp>#include <sscanf>#include <zcmd>// ** MAINmain(){    print("Loaded \"color_hex_funct...
255
Yeah I know those, But I wish to use the parameters color1 and color2. And not A macro definition... Isn't there a way?
255
I'd like to do something like this: function(color1,color2) { SendClientMessage(playerid,COLOR_WHITE, "{color1} Hello {color2} World!"); return 1; } It seems far-fetched but is it somehow possi...
255
Right, PAWN, sorry. That's quite a shame though, is there a way you (or anyone else) can think of to use linked lists or stacks or Queues at least?
65
Hey, I'd like to create classes, like in other programming languages. I've wanted this for a long time, so I thought I'd give it a shot now. I need to do something like C++ for example: class Cop { ...
65
Okay, so I want to create a dialog with style DIALOG_STYLE_LIST. The problem is, I don't know the items inside that list for sure. my question is, how do I add them? ==================================...
95
I'll give you an example. but I won't go through your whole code. Alright so first define a boolean variable outside any callbacks/functions: pawn Код: new bool:needhelp[playerid]; // this is fal...
77
your sentence isn't making any sense.. Sorry. What does "but that car is civillian frm Police not from dealership"
93
Quote: Originally Posted by Wizzy951 Try changing: pawn Код: ShipInfo[veh][ShipObject[i]] = 1; to pawn Код: ShipInfo[veh][ShipObject[i] = 1; Sorry, but that's entirely wron...
138
Yeah, sorry. Maybe you need to update. Check this out, it might help you ---> https://sampforum.blast.hk/showthread.php?tid=384518 Quote: The script was real messy with OnFilterScriptI...
138
If you're new to scripting, you shouldn't use NGG Mod. If you're new at scripting, I would actually recommend you script on a blank script, test out Pawno, get the hang of it and only then attempt to ...
119
pawn Код: ShipInfo[veh][ShipObject[i]] = 1; What is this "[i]". Try to remove it.
138
Try to put this in your enum: pawn Код: enum sNfo {    ShipObject[64]};new ShipInfo[MAX_VEHICLES][sNfo];
138
Sure, Easy. I'll write the code and explain it: pawn Код: CMD:airchat(playerid, params[]) // airchat is the name of the command, you can change it to whatever you want.{new text[126]; // text is ...
116
Quote: Originally Posted by lramos15 it doesn't work for me though.. As was suggested, update all of your .inc files!
136
We can't help you if you don't say what's wrong. We're not just gonna search the whole code and discover the error. Give us the error messages, or tell us what its doing instead of what it should do. ...
64
You never assigned a value to PlayerScore, therefore it is always assumed 0. Remove pawn Код: new PlayerScore; And Replace this: pawn Код: if(PlayerScore <= 15) With: pawn Код: if(Ge...
85
Here's Changename: pawn Код: CMD:changename(playerid, params[]){if(PInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, COLOR, "You have to be an admin to use this command!"); // rest...
107