Search Results
Quote: Originally Posted by xRadical3 Delete the primary key column from the `bans` table and try again. Quote: Originally Posted by SharpenBlade Well, you added a primary k...
1,006
Hello, the server crashed when i banned someone, I don't know what happens. PHP Code: [16:14:10] [debug] Server crashed due to an unknown error [16:14:10] [debug] Native backtrace: [16...
1,006
Here Anyway, the best event system is one of its own. Try to do one little by little, if you don't know something let us know.
275
Quote: Originally Posted by Variable™ In your code you are using "id" to refer to the player that this disconnected player was duelling but you are not considering whether the id value i...
425
Quote: Originally Posted by Variable™ Are you resetting the PlayerInfo array when the player disconnects? If so, make sure to do the duel check before you reset it, otherwise I assume yo...
425
PHP Code: CMD:kick(playerid, params[]) {     if(pInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, WHITE, "Server: Unknown command.");     new stringadm[144];   ...
298
Quote: Originally Posted by Adamoneoone 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 ...
425
Hello! I found this recently: PHP Code: [18:09:34] [debug] Run time error 4: "Array index out of bounds" [18:09:34] [debug]  Attempted to read/write array element at negative ...
425
Quote: Originally Posted by xRadical3 See this example: pawn Code: new TDM_Count = 0; //on top of scriptTDM_Count++; //Add 1 to the varif(TDM_Count == 3) TDM_Count = 1; //If the var is 3,...
345
Hello, I have come up with an interesting minigame but I don't know how to match the number of players, if team 1 has 1 player, you enter Team 2 and when Team 2 has the same amount, the next player en...
345
Quote: Originally Posted by Runn3R That's literally what i've said... Why don't you let people write their own code. Don't worry, I did it myself when I read your answer as I understoo...
435
Recently on my server I discovered this: PHP Code: [18:31:24] [debug] Run time error 4: "Array index out of bounds" [18:31:24] [debug]  Attempted to read/write array element at...
435
PHP Code: public OnPlayerConnect(playerid) { Stats[playerid][0] = TextDrawCreate(10.000000, 129.644470, "box"); TextDrawLetterSize(Stats[playerid][0], 0.000000, 22.649972); TextDrawTextSize...
727
Quote: Originally Posted by XStormiest Well, every time you create a new achievement, you create it for the player, or the player name or character name or whatever you want to use. You ne...
384
Quote: Originally Posted by XStormiest Code: LoadPlayerAchievement(playerid, achvid) { // Get the MySQL query new query[256]; format(query, sizeof(query), "SELECT `pID`, `a...
384
Quote: Originally Posted by XStormiest You do not need a variable for every achievement. You will perform MySQL database queries to select the achievement you want to load into a variable....
384
Quote: Originally Posted by jasperschellekens Use a seperate table with an Primary key auto IC ID and a column which holds the users/characters ID. You don't need a timer for that. Kill...
384
Hello, what is the most correct way to save achievements? I'll do an achievement system based on kills, duel wins, etc. then I can think of 2 ways: check if they have X kills and give it the achieveme...
384
Quote: Originally Posted by Symon Probably something like this? (OnPlayerDeath) pawn Code: if(IsBeingSpeced[playerid] == 1){    /* -- Loop -- */ if(spectatorid[i] == playerid) PlayerSp...
166