SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 203
Search took 0.01 seconds.
Search: Posts Made By: SharpenBlade
Forum: Scripting Help 29/07/2020, 12:58 PM
Replies: 7
Views: 232
Posted By SharpenBlade
Re: FCNPC Path Finding

I think you could use colandreas.
Forum: Scripting Help 28/07/2020, 03:06 PM
Replies: 5
Views: 175
Posted By SharpenBlade
Re: Register System bug

Try this:
if(dialogid == DIALOG_REGISTER)
{
if(!response) return Kick(playerid);
if( strlen( inputtext ) < 6 || strlen(inputtext) > 24 )
{
SCM(playerid,-1,""CRVENA"[BA:RP]"BELA"Moras...
Forum: Scripting Help 27/07/2020, 07:25 AM
Replies: 1
Views: 83
Posted By SharpenBlade
Re: Driver NPC Problem

Well, maybe you have some command or any script to remove players from vehicles at certain circumstances. Check for those scripts and check if the player is npc and return 1 or 0. Also, until you...
Forum: Scripting Help 27/07/2020, 07:19 AM
Replies: 4
Views: 308
Posted By SharpenBlade
Re: What is wrong with my editfrank

Have you checked mysql_log?
Using r33+: a file in your server's folder named mysql_log.
Using r41-4: a folder named logs.
Forum: Scripting Help 26/07/2020, 05:48 AM
Replies: 3
Views: 436
Posted By SharpenBlade
Re: crash server

Well, you added a primary key after creating the table. Empty the bans table and check if it works.
Forum: Scripting Help 23/07/2020, 06:40 PM
Replies: 11
Views: 249
Posted By SharpenBlade
Re: Store in a variable when player stop handsup

You have a smart answer above by NaS. Here is an example:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newkeys & KEY_SECONDARY_ATTACK & !(oldkeys & KEY_SECONDARY_ATTACK)) //...
Forum: Scripting Help 23/07/2020, 06:25 PM
Replies: 2
Views: 79
Posted By SharpenBlade
Re: Argument mismatch

To get coords zone you can use this:
stock GetZoneName(Float: x, Float: y, Float: z)
{
new zone[28];
for(new i = 0; i < sizeof(gSAZones); i++)
{
if(x >= gSAZones[i][SAZONE_AREA][0] && x...
Forum: Scripting Help 23/07/2020, 05:58 AM
Replies: 4
Views: 133
Posted By SharpenBlade
Re: Question about timers

I don't think it will. But I suggest to use ysi timers or some improved timers for better performance.
Forum: Scripting Help 21/07/2020, 11:48 AM
Replies: 2
Views: 193
Posted By SharpenBlade
Re: ram usage HIGH increase

Well, check your timers so you don't have infinite loops. Also, use threaded queries and check for optimising your code.
Some tutorials:
https://forum.sa-mp.com/showthread.php?t=432756...
Forum: Scripting Help 21/07/2020, 07:33 AM
Replies: 2
Views: 128
Posted By SharpenBlade
Re: YSI help

Bump.
Forum: Scripting Help 21/07/2020, 06:54 AM
Replies: 7
Views: 280
Posted By SharpenBlade
Re: OnPlayerStateChange issue

Well, try to print HasPilotJob[playerid] variable to see it's value.
Use: printf("HasPilotJob[playerid] is set to %d", HasPilotJob[playerid]);
Forum: Scripting Help 20/07/2020, 04:59 PM
Replies: 7
Views: 223
Posted By SharpenBlade
Re: Maps not loading

CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_OBJECT_SD, Float:drawdistance =...
Forum: Scripting Help 20/07/2020, 11:33 AM
Replies: 2
Views: 128
Posted By SharpenBlade
YSI help

Hi guys! I switched recently to y_commands, but Command_AddAltNamed doesn't seem to be working for me. It says the command doesn't exist.
public e_COMMAND_ERRORS:OnPlayerCommandReceived(playerid,...
Forum: Scripting Help 20/07/2020, 07:33 AM
Replies: 1
Views: 149
Posted By SharpenBlade
Re: MySQL 41-4 onplayerdisconnect [ERROR] cache_insert_id: no active cache

Player[playerid][ID] = cache_insert_id();
cache_insert_id takes the id from the database when you insert a new row using INSERT INTO. I don't think you should use that there. When the player loggins...
Forum: Scripting Help 18/07/2020, 06:25 PM
Replies: 5
Views: 208
Posted By SharpenBlade
Re: House System!

Try this maybe... it would be more useful to indicate those lines.
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new houseid = inHouse[playerid];
new housedid =...
Forum: Scripting Help 18/07/2020, 04:20 AM
Replies: 2
Views: 161
Posted By SharpenBlade
Re: sql 41-4 // load int, float or string

Use cache_get_value_name.
Forum: Scripting Help 17/07/2020, 02:44 PM
Replies: 7
Views: 271
Posted By SharpenBlade
Re: dynamic doors

In JPost float also place the angle of the door(probably will be 90, chevk using map editor). After jpost 2 in creating the object place jpost 3. Use that variable to stock the angle of the door.
Forum: Scripting Help 17/07/2020, 10:04 AM
Replies: 6
Views: 228
Posted By SharpenBlade
Re: Should I update MySQL plugin to R40 above?

You can read all the improvements here:
https://github.com/pBlueG/SA-MP-MySQL/releases
Forum: Scripting Help 17/07/2020, 08:30 AM
Replies: 9
Views: 264
Posted By SharpenBlade
Re: onplayerrequestspawn problem.

Place my code under OnAccountLoad.
Forum: Scripting Help 17/07/2020, 08:13 AM
Replies: 6
Views: 224
Posted By SharpenBlade
Re: My host does not load the plugins help...

SSCANF: https://github.com/maddinat0r/sscanf/releases/download/v2.8.3/sscanf-2.8.3-linux.tar.gz
FCNPC: http://www.mediafire.com/folder/41zfclq74q00q0j,fr4ecoavnzf8uni/shared
RouteConnectorPlugin:...
Forum: Scripting Help 17/07/2020, 07:56 AM
Replies: 2
Views: 115
Posted By SharpenBlade
Re: Is this possible?

You can save them in a database and under OnGameModeInit load them.
Example script:
enum vData
{
vehSpawned,
vehModel,
Float:vehX,
Float:vehY,
Float:vehZ,
Float:vehA
Forum: Scripting Help 17/07/2020, 06:20 AM
Replies: 6
Views: 203
Posted By SharpenBlade
Re: Please help me..

Well, download crashdetect and use it. Also, make a file in pawno folder, named pawn.cfg and place this in it:
-d3
Compile your gamemode again and play until the error appears again in the server...
Forum: Scripting Help 17/07/2020, 06:15 AM
Replies: 5
Views: 181
Posted By SharpenBlade
Re: How to Load From Mysql

forward Exchange_Load();
public Exchange_Load()
{
static
fields,
rows,
str[128];

cache_get_data(fields, rows);
if(!rows) return 1;
Forum: Scripting Help 16/07/2020, 01:15 PM
Replies: 9
Views: 264
Posted By SharpenBlade
Re: onplayerrequestspawn problem.

I belive it should be OnAccountLoad.. It should be the function where you retrieve information from the database. After all the info place that.
Forum: Scripting Help 16/07/2020, 11:10 AM
Replies: 9
Views: 264
Posted By SharpenBlade
Re: onplayerrequestspawn problem.

Well sir, after the login was successful, I guess you have a function, such as OnPlayerLogin. In that function use SetSpawnInfo to set the player pos and after that use SpawnPlayer(playerid);...
Showing results 1 to 25 of 203

 

All times are GMT. The time now is 09:23 PM.


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