Search Results
Well, you added a primary key after creating the table. Empty the bans table and check if it works.
1,405
Yes, sorry, I have read it wrong. I am not sure about it... Why don't you use it like this?
PHP Code:
GetPlayerHealthEx(playerid) return Player[playerid][Health];
//in command:
new Float:heal...
2,014
Quote:
Originally Posted by SkyFlare
Do you think this would work?
PHP Code:
GetPlayerHealthEx(playerid, &Float:HpAmount)
{
    HpAmount = Player[playerid][Health];
}Â
...
2,014
Well, then I think your code could work.
PHP Code:
GetPlayerHealthEx(playerid) return Player[playerid][Health];
GetPlayerArmorEx(playerid) return Player[playerid][Armor];
SetPlayerHealthEx(pla...
2,014
Seems ok, but I don't think you can set player's health without using SetPlayerHealth.
PHP Code:
GetPlayerHealthEx(playerid) return Player[playerid][Health];
GetPlayerArmorEx(playerid) return ...
2,014
If you are trying to count the rows try this:
new rows;
cache_get_row_count(rows);
if(rows)
663
If you say there are no errors/warning in your server_log try searching in your gamemode for:
PHP Code:
SendRconCommand("gmx");Â
1,214
PHP Code:
CMD:kick(playerid, params[])
{
    if(pInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid, WHITE, "Server: Unknown command.");
    new stringadm[144];
  Â...
412
You could ban player serial(gpci). There could be some glitches, like two players with the same gpci, but it could work for you.
https://sampwiki.blast.hk/wiki/Gpci
1,916
Quote:
Originally Posted by Ertouq
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]Â ...
610
Quote:
Originally Posted by Calinut200
How to activate a timer like that only if a variable is 1;
PHP Code:
ptask name[1000](playerid)Â
{
    // my code
}Â
This is the t...
471
You should give more details about that... where you have put that code? If your textdraw is called linia11 you could do this:
PHP Code:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:p...
511
From what I see, your variable name rolename is an array. So the check should be like this:
Quote:
if(!strcmp(rolename, g_Role_Level_1, false)
1,061
I am not sure you can. Try like this:
PHP Code:
if(channel == g_Discord_Admin_CMD)
{
    if(!strcmp(command, "!mycommand", true))Â
    {
        if(role == g_Role_Level_1 |...
422
To learn about MySQL you can acces samp wiki or a register tutorial or something.
https://sampwiki.blast.hk/wiki/MySQL_Tutorial
https://sampforum.blast.hk/showthread.php?tid=627520
424
Count begins from 0 as far as I know.
588
I faced that problem. My problem was using unthreaded queries(if you use mysql) and very large strings consuming memory. If you use mysql search for threaded queries and use them.
474