SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: jlalt
Forum: Scripting Help 20/08/2018, 07:04 AM
Replies: 10
Views: 222
Posted By jlalt
Re: offline jail didnt work

I guess you need to remove this.

iTime = (iTime * 60);


COMMAND:ojail(playerid, params[])
{
if(!PlayerInfo[playerid][power]) return SendClientError(playerid, CANT_USE_CMD);
new...
Forum: Scripting Help 20/08/2018, 06:32 AM
Replies: 10
Views: 222
Posted By jlalt
Re: offline jail didnt work

Gotta use AccountExist instead of !AccountExist


COMMAND:ojail(playerid, params[])
{
if(!PlayerInfo[playerid][power]) return SendClientError(playerid, CANT_USE_CMD);
new iPlayer[ 40...
Forum: Scripting Help 20/08/2018, 06:26 AM
Replies: 10
Views: 222
Posted By jlalt
Re: offline jail didnt work

show your AccountExist function?
Forum: Scripting Help 20/08/2018, 05:57 AM
Replies: 8
Views: 132
Posted By jlalt
Re: Disable command

do it like this:

if(GetPlayerState(playerid) == PLAYER_STATE_WASTED) return SendClientError(playerid, "You cannot use this command while dead");
Forum: Scripting Help 20/08/2018, 05:35 AM
Replies: 10
Views: 222
Posted By jlalt
Re: offline jail didnt work

You're passing integer parameter to sscanf and expecting a string...


COMMAND:ojail(playerid, params[])
{
if(!PlayerInfo[playerid][power]) return SendClientError(playerid, CANT_USE_CMD); ...
Forum: Server Support 16/08/2018, 05:13 PM
Replies: 7
Views: 400
Posted By jlalt
Re: Server stops when player is kicked

One question, do you disbale class selection when player joins using toggleplayerspectating?
Forum: Scripting Help 16/08/2018, 01:22 PM
Replies: 2
Views: 130
Posted By jlalt
Re: AMX Backtrace problem

You have to check if killer id is valid [ not self kill ] then do actions on killerid..


public OnPlayerDeath(playerid, killerid, reason)
{
taser[playerid] = false;
...
Forum: Scripting Help 15/08/2018, 01:47 PM
Replies: 6
Views: 150
Posted By jlalt
Re: Save query

First parameter is connection handler.

mysql_format(g_SQL, query,sizeof(query),...);
Forum: Scripting Help 15/08/2018, 01:36 PM
Replies: 6
Views: 150
Posted By jlalt
Re: Save query

They are part of that query as it failing due to %e so none being updated. Use mysql_format and all should be fixed.
Forum: Scripting Help 15/08/2018, 01:33 PM
Replies: 2
Views: 167
Posted By jlalt
Re: Login bug

Seems like you're not loading the salt...

forward OnPlayerDataCheck(playerid, corrupt_check);
public OnPlayerDataCheck(playerid, corrupt_check)
{
if (corrupt_check !=...
Forum: Scripting Help 15/08/2018, 01:27 PM
Replies: 6
Views: 150
Posted By jlalt
Re: Save query

To be able to use %e to escape you gotta use mysql_format not normal format.
Forum: Scripting Help 15/08/2018, 08:13 AM
Replies: 8
Views: 319
Posted By jlalt
Re: REPLACING dini with dini2 include

https://github.com/pawn-lang/compiler/releases
Forum: Scripting Help 14/08/2018, 04:19 PM
Replies: 8
Views: 245
Posted By jlalt
Re: Attempted to read/write array element at negative index -400

Simply add a check before doing the 3dtext label update process.

if(GetVehicleModel(playerVehicle[i]) > 0)
{
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(i), health);
new...
Forum: Scripting Help 13/08/2018, 10:38 PM
Replies: 1
Views: 89
Posted By jlalt
Re: Cancel hit command.

assign Cancelhit to -1 by default.
and assign it to targetid when /hit used. ex Cancelhit[playerid] = targetid;
then later
so

CMD:chit(playerid, params[])
{
new ID,string[170];
...
Forum: Scripting Help 13/08/2018, 02:08 PM
Replies: 10
Views: 399
Posted By jlalt
Re: 1K instead of 1000

Just wrote a simple function see if it fit your need : p

public OnFilterScriptInit()
{
new str[] = { 'M', 1000000, 'K', 1000 };
new value = GetValue("126MK", str);
printf("%d", value);
}
...
Forum: Scripting Help 13/08/2018, 01:57 PM
Replies: 5
Views: 110
Posted By jlalt
Re: KillTimer doesnt work...

dmgtimer = SetTimerEx("CountPlayerDamage", 900000, 1, "i", playerid);
respecttimer = SetTimerEx("CountPlayerRespect", 360000, 1, "i", playerid);
Your timers are per player but your variables...
Forum: Scripting Help 13/08/2018, 08:33 AM
Replies: 8
Views: 299
Posted By jlalt
Re: OnPlayerRequestClass shows no skins even while AddPlayerClass is used.

Show the codes under
OnPlayerRequestClass callback?
Forum: Scripting Help 12/08/2018, 01:58 PM
Replies: 14
Views: 424
Posted By jlalt
Re: Wait on OnPlayerConnect

@NaS, TogglePlayerSpectating if used under onplayerconnect without using SetSpawnInfo after it, when player leaves the server on first class selection process server will freeze.
Forum: Scripting Help 11/08/2018, 04:10 PM
Replies: 11
Views: 442
Posted By jlalt
Re: Remove an line from .txt file

Remvoing skin id 5
Id 5 gets removed
Id 50 - 59 gets removed
Remove skin id 1
Id 1 gets removed id 10 - 19 gets removed...
Remove skin id 2
Id 2 gets removed id 20 - 29 gets removed

You've...
Forum: Scripting Help 10/08/2018, 04:19 PM
Replies: 11
Views: 442
Posted By jlalt
Re: Remove an line from .txt file

fdeleteline(filename[], removed[])
{
new string[64], str[32], File:handle, File:ftmp;
handle = fopen(filename,io_read);
format(str,sizeof(str),"%s.part",filename);
ftmp =...
Forum: Scripting Help 02/08/2018, 07:05 PM
Replies: 1
Views: 118
Posted By jlalt
Re: Player color

http://wiki.sa-mp.com/wiki/SetPlayerMarkerForPlayer
Forum: Scripting Help 30/07/2018, 11:32 AM
Replies: 14
Views: 256
Posted By jlalt
Re: callbacks.pwn(1213) : warning 213: tag mismatch callbacks.pwn(1217) : warning 213: tag mismatch callbacks.pwn(1221)

pretty sure you had to use OnPlayerClickPlayerTextDraw (http://wiki.sa-mp.com/wiki/OnPlayerClickPlayerTextDraw) callback.
about the errors I really couldn't find anything which would make them, are...
Forum: Scripting Help 30/07/2018, 10:41 AM
Replies: 12
Views: 299
Posted By jlalt
Re: Skin doesn't load from MySQL?

Have you checked the mysql database or predicting? may you do another test? [ buy a skin or whatever then relog? ]
Forum: Scripting Help 30/07/2018, 10:30 AM
Replies: 12
Views: 299
Posted By jlalt
Re: Skin doesn't load from MySQL?

seems like your updating data query has an issue.
`HEADSHOTS` WHERE `ID` = %d LIMIT 1
has to be:
`HEADSHOTS` = %d WHERE `ID` = %d LIMIT 1
so ->

mysql_format(Database, DB_Query,...
Forum: SA-MP 0.3.DL 30/07/2018, 10:25 AM
Replies: 11
Views: 787
Posted By jlalt
Re: Streamer Problem

This issues appear when you have bunch of CreateObject codes beside CreateDynamicObject, search your script see if you have CreateObject, if yes convert them to CreateDynamicObject, see result.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 08:26 AM.


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