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: 739
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: 739
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: 739
Posted By jlalt
Re: offline jail didnt work

show your AccountExist function?
Forum: Scripting Help 20/08/2018, 05:57 AM
Replies: 8
Views: 455
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: 739
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: 823
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: 363
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: 317
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: 317
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: 596
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: 317
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: 842
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: 6
Views: 1,141
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: 253
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, 01:57 PM
Replies: 4
Views: 238
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: 682
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: 1,040
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: 983
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: 983
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: 247
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: 725
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: 677
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: 677
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: Scripting Help 29/07/2018, 10:29 AM
Replies: 1
Views: 379
Posted By jlalt
Re: Player color

Yes, make the alpha as 0
0xColor00
Ex:
SetPlayerColor(playerid, 0x00AAAA00);
Forum: Scripting Help 25/07/2018, 12:20 PM
Replies: 2
Views: 281
Posted By jlalt
Re: warning 213: tag mismatch

You either use
MATERAL:3 and MATERIAL:4
or just write enum name.
- >

format(string,sizeof(string),"%s\t%d\n",Material[i][MName],Material[i][MPrice]);//warning 213: tag mismatch.


Or ->
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 09:22 AM.


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