Search Results
Make a new variable ( For example new cPlayers; ) Count alive players by looping through all players and check if they are alive. If they are, increase cPlayers with +1 (cPlayers++), and than use this...
190
gettime returns time of the machine (server) on which your server is hosted, so you can't change it. The only thing you can do is to contact your hosting provider and ask them to change timezone for ...
301
GivePlayerWeapon(playerid, WEAPON_FLAMETHROWSER, 100) But in-game when I select flamethrowser I have 10 ammo In the other case, when I use GivePlayerWeapon(playerid, WEAPON_FLAMETHROWSER, 1000) In-ga...
101
Quote: Originally Posted by TheToretto u fukin kidding me 5k lines for a mafia script Don't post here with comments like that just to increase your number of posts. I asked for help, i...
164
I see this for the first time in my life, I will be hones, I have no idea how to use this method in my case. But, I think that few lines of code as an example for for my case will help me to understan...
164
Quote: Originally Posted by Pottus Or you could use a variable to store what listitem's reference which array indexes How I could do that? Can you please me provide quick example how th...
164
I got it what I am doing wrong but don't know to fix it :S I loop through all grades and check if there is any grade that is made for (for example) rank 3. If there is such grade(s) I add them to dial...
164
PHP код: enum GradeInfo  {      gRank,     gLevel,     gName[32],     Float:gHealth,     Float:gArmor } // Here I have Grades and the rank number they belong. ...
164
Thee is another problem, when I loop through all ranks, and skip this dummy and add other ranks in the dialog list, dialog starts from case 0: I need it to start from case 1: too, any suggestions?
211
Okay, and how to change loop than to skip that dummy field? PHP код: for(i = 0; i < sizeof(MafiaRank); i++) 
211
PHP код: new MafiaRank[][SomeInfo] = {    { blabla, blabla, blabla }, // MafiaRank[0][SomeInfo]   { blabla, blabla, blabla }, // MafiaRank[1][SomeInfo]   { blabla, blabla...
211
I want to be able to select first row of the MafiaGrade and loop all grades there an display them but I am getting some errors when I try to do that. PHP код: enum GradeInfo {     gLevel,...
62
There is nothing in crashdetect (I configured it properly) PS: That command cause the cras, I just don't know why?
77
I want to show all available ranks to player, but this crashes my server. PHP код: // command /ranks     new string[500];     string[0] = EOS;          switch(team)   Â...
77
I know this is not the best method you can do, but you can seperate this in multiple functions. For example, like I use in my mod. PHP код: SaveOrgInfo1(oid) {     new DB_Query[1024];  Â...
132
Quote: Originally Posted by jasperschellekens SQL has nice options called autoincrement and primary key. You can set these as fieldname ID for example. Take a look at this query to create ...
108
When player uses /makefaction [name][type] PHP код: stock CreateFaction(fname[], Float:PlayerPosX, Float:PlayerPosY, Float:PlayerPosZ, ftype) {     DB::CreateRow(FactionTable, "Facti...
108
I am starded working on my faction system that runs on BlueG's mysql plugin. I just don't know how to create /makefaction command, to be more precise, how to check if there is available ID in table "...
108
Are you using ban system with R40+ mysql plugin? (https://github.com/pBlueG/SA-MP-MySQL/releases)
138