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,408
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,408
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.
384
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...
717
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...
717
PHP Code:
CMD:kick(playerid, params[])
{
    if(pInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, WHITE, "Server: Unknown command.");
    new stringadm[144];
  Â...
413
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 ...
717
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 ...
717
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,...
458
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...
458
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...
612
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...
612
PHP Code:
public OnPlayerConnect(playerid)
{
Stats[playerid][0] = TextDrawCreate(10.000000, 129.644470, "box");
TextDrawLetterSize(Stats[playerid][0], 0.000000, 22.649972);
TextDrawTextSize...
1,158
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...
653
Quote:
Originally Posted by XStormiest
Code:
LoadPlayerAchievement(playerid, achvid)
{
// Get the MySQL query
new query[256];
format(query, sizeof(query), "SELECT `pID`, `a...
653
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....
653
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...
653
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...
653
Quote:
Originally Posted by Symon
Probably something like this? (OnPlayerDeath)
pawn Code:
if(IsBeingSpeced[playerid] == 1){Â Â /* -- Loop -- */ if(spectatorid[i] == playerid) PlayerSp...
232