SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 438
Search took 0.01 seconds.
Search: Posts Made By: Vizi10
Forum: Scripting Help 23/05/2020, 11:57 PM
Replies: 3
Views: 89
Posted By Vizi10
Re: Can you put a SetTimer in a format?

native GetTimerInterval(timerid);
//from TimerFix plugin - https://forum.sa-mp.com/showthread.php?t=650736



stock GetDateAndTimeOfMs(millisecond, &year, &month, &day, &hour, &minute, &second)...
Forum: Scripting Help 23/05/2020, 09:46 PM
Replies: 10
Views: 113
Posted By Vizi10
Re: Pickups not loading from database (only a few)

Check that the information on each pickup is inserted correctly.
Or try this query: SELECT `ID` FROM `pickups`
Forum: Scripting Help 23/05/2020, 10:55 AM
Replies: 3
Views: 70
Posted By Vizi10
Re: Vehicle armor issue

This callback is called when a vehicle respawns from `SetVehicleToRespawn`.
Put code inside `OnPlayerEnterVehicle`.
Forum: Scripting Help 23/05/2020, 12:52 AM
Replies: 3
Views: 104
Posted By Vizi10
Re: Sublime text 3 Error!

Try this{
"cmd": ["pawncc.exe", "-i includes", "$file", "-;+"],
"path": "C:/gamemode/pawno"
}
Forum: Scripting Help 23/05/2020, 12:44 AM
Replies: 10
Views: 223
Posted By Vizi10
Re: Delete3DTextLabel is not working?

The problem is that you put
new Text3D:label[MAX_PLAYERS]; inside OnDialogResponse.
Put it on top of your gm.

May be this tutorial helps you how to use labels;...
Forum: Scripting Help 23/05/2020, 12:32 AM
Replies: 3
Views: 70
Posted By Vizi10
Re: Vehicle armor issue

Show us the error line and error of the compiler.
Forum: Scripting Help 23/05/2020, 12:21 AM
Replies: 7
Views: 106
Posted By Vizi10
Re: strings returning blank

Try "static" to "new".
Forum: Scripting Help 22/05/2020, 12:23 AM
Replies: 7
Views: 160
Posted By Vizi10
Re: how to detect if the player is in combat

Maybe this topic help you:
https://forum.sa-mp.com/showthread.php?t=488198
Forum: Scripting Help 21/05/2020, 10:10 PM
Replies: 7
Views: 160
Posted By Vizi10
Re: how to detect if the player is in combat

Try this;
//top
new
inCombat[MAX_PLAYERS];

//OnPlayerTakeDamage
if(issuerid != INVALID_PLAYER_ID) inCombat[playerid] = gettime() + 5, inCombat[issuerid] = gettime() + 5;

//function for...
Forum: Scripting Help 18/05/2020, 07:13 AM
Replies: 1
Views: 57
Posted By Vizi10
Re: How can I get the coordinates of a player's body?

Player Attached Object Editor (https://forum.sa-mp.com/showthread.php?t=416138)
Forum: Scripting Help 17/05/2020, 11:32 PM
Replies: 7
Views: 118
Posted By Vizi10
Re: logging error wrong password

Try to use another password hash functions.
Forum: Scripting Help 15/05/2020, 12:33 AM
Replies: 2
Views: 95
Posted By Vizi10
Re: Actor name is not showing

Try this:
//on top
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)

aInfo[actorid][aName] = dini_Get(ActorPath(actorid), "Name");
//to
strcpy(aInfo[actorid][aName],...
Forum: Scripting Help 14/05/2020, 12:17 AM
Replies: 3
Views: 95
Posted By Vizi10
Re: Problem with "IsPlayerInRangeOfPoint"

if(IsPlayerInRangeOfPoint(playerid, 100.0, GSpawnX[ PGang[playerid] ], GSpawnY[ PGang[playerid] ], GSpawnZ[ PGang[playerid] ]))
//or
for(new i; i<MAX_GANGS; i++)
{
if(PGang[playerid] == i &&...
Forum: Scripting Help 14/05/2020, 12:11 AM
Replies: 3
Views: 68
Posted By Vizi10
Re: help, I get this error

Update your mysql include & plugin to latest version.
https://forum.sa-mp.com/showthread.php?t=56564
Forum: Scripting Help 11/05/2020, 12:37 AM
Replies: 3
Views: 101
Posted By Vizi10
Re: Replacing a string

This method may be better than strreplace:
new text[128] = "Hello /r/World";
for(new i; i < strlen(text); i++)
{
if(text[i] == '/') text[i] = '~';
}
//output is now: Hello ~r~World
Forum: Scripting Help 09/05/2020, 05:06 PM
Replies: 3
Views: 111
Posted By Vizi10
Re: The compiler runs forever

I had to edit the previous game mode and convert to MySQL again.
Anyway, thank you for your solution.
Forum: Scripting Help 09/05/2020, 01:26 PM
Replies: 3
Views: 111
Posted By Vizi10
Thumbs down The compiler runs forever

I converted an old game mod that stored player information with dini to MySQL.
When converting was over, I compiled it and there was no problem.
After more changes in gamemode, I wanted to compile...
Forum: Scripting Help 09/05/2020, 12:09 AM
Replies: 9
Views: 163
Posted By Vizi10
Re: Problem load player password from database takes long time

CPU or RAM was probably high at the time. I restarted vps.
I don't know exactly, maybe it was an attack.
Now that I'm testing, `mysql_format` works well too.
Forum: Scripting Help 08/05/2020, 11:25 PM
Replies: 9
Views: 163
Posted By Vizi10
Re: Problem load player password from database takes long time

Solved.
But I don't understand why it was solved like this: ???
mysql_format(SQLHandle, query, sizeof query, "select * from `accounts` where `playername` = '%e';", PlayerName(playerid));...
Forum: Scripting Help 08/05/2020, 09:41 PM
Replies: 9
Views: 163
Posted By Vizi10
Exclamation Problem load player password from database takes long time

Here is my code:
new query[128];
mysql_format(SQLHandle, query, sizeof query, "select * from `accounts` where `playername` = '%e';", PlayerName(playerid));
mysql_tquery(SQLHandle, query,...
Forum: Scripting Help 08/05/2020, 10:45 AM
Replies: 6
Views: 144
Posted By Vizi10
Re: [MYSQL R41-2] Vehicle SQLID

You can use such a simple function. You should also have a column called sqlid in table accounts.
GetPlayerNameFromSQLID(id)
{
new Cache:result, query[128], dest[MAX_PLAYER_NAME];
...
Forum: Scripting Help 07/05/2020, 12:02 AM
Replies: 4
Views: 76
Posted By Vizi10
Re: Sublime text 3 option -d3

#pragma option -d3
Not working ???
Forum: Scripting Help 06/05/2020, 11:05 PM
Replies: 4
Views: 76
Posted By Vizi10
Sublime text 3 option -d3

I compile my script with pawno, and when crashdetect gives a runtime error, it shows me the line, but when I compile the script with Sublime text 3, it dosen't shows me the line.
I also have...
Forum: Scripting Help 05/05/2020, 01:31 AM
Replies: 2
Views: 78
Posted By Vizi10
Re: Function is not called... dont understand why

Show us "new Iterator:PlayerAdmins"
I don't ask you but you really don't need an iterator for Admins.???
foreach(new i : Player) if(PlayerInfo[i][pAdmin] > 0)
Forum: Scripting Help 05/05/2020, 01:28 AM
Replies: 4
Views: 79
Posted By Vizi10
Re: mysql problem

new DB_Query[550];

public OnPlayerConnect(playerid)
{
new DB_Query[550];
// the code but with content to the function BannedCheck
return 1;
}
Showing results 1 to 25 of 438

 

All times are GMT. The time now is 04:59 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.