SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: TheToretto
Forum: Scripting Help 14/05/2019, 12:15 AM
Replies: 11
Views: 303
Posted By TheToretto
Re: List staff

Show a screenshot.
Forum: Scripting Help 13/05/2019, 06:21 PM
Replies: 11
Views: 303
Posted By TheToretto
Re: List staff

function ListStaff(playerid) {
new rows = cache_num_rows(), pn[MAX_PLAYER_NAME], alvl, string[144], dialog[512]; // increase dialog size if needed

if(!rows)
return 0; // no...
Forum: Scripting Help 09/05/2019, 10:26 PM
Replies: 11
Views: 303
Posted By TheToretto
Re: List staff

Send the argument playerid to the function:


CMD:staff(playerid)
{
mysql_tquery(connsql, "SELECT * FROM `accounts`", "ListStaff", "d", playerid);
return 1;
}

function...
Forum: Scripting Help 09/05/2019, 06:33 PM
Replies: 7
Views: 181
Posted By TheToretto
Re: Next paycheck

Put a 60 second global timer and increase ServerHour, then subtract it from 24
Forum: Scripting Help 09/05/2019, 02:18 PM
Replies: 6
Views: 119
Posted By TheToretto
Re: Visual Studio Code Compiler not compiling

Change `"'-Dgamemodes'"` into `"'-Dfilterscripts'"` (Filterscripts was your first directory from what I've seen)
Forum: Scripting Help 09/05/2019, 02:15 PM
Replies: 6
Views: 146
Posted By TheToretto
Re: weapon config debug

[07:57:07] [debug] #1 0002444c in public OnPlayerDamage (&playerid=@00d78e0c 1, &Float:amount=@00d78e10 0.28050, &issuerid=@00d78e14 65535, &weapon=@00d78e18 37, &bodypart=@00d78e1c 3) at E:\Program...
Forum: Scripting Help 09/05/2019, 10:42 AM
Replies: 6
Views: 146
Posted By TheToretto
Re: weapon config debug

Do the same thing I've told you to do to your function called `InflictDamage`
Forum: Scripting Help 08/05/2019, 05:25 PM
Replies: 2
Views: 86
Posted By TheToretto
Re: A remoteban command in MySQL

Why do you delete the whole content of the player from the table? Unless `players` stores bans only, you shouldn't be doing it that way, but resetting his: Either minutes/hours/days or if you have...
Forum: Scripting Help 08/05/2019, 05:18 PM
Replies: 6
Views: 135
Posted By TheToretto
Re: Why is this "continuing" even though a player id is NOT online?

You don't even know what continue & break means do you? Check this out: https://wiki.sa-mp.com/wiki/For#continue then https://wiki.sa-mp.com/wiki/For#break
Forum: Scripting Help 08/05/2019, 05:16 PM
Replies: 2
Views: 65
Posted By TheToretto
Re: Getting a player's location

https://forum.sa-mp.com/showthread.php?t=27598 --> https://pastebin.com/f68e1a6ad
Forum: Scripting Help 07/05/2019, 11:40 PM
Replies: 7
Views: 181
Posted By TheToretto
Re: Next paycheck

Well then why not 60 - ServerMinute ? You can't get the exact remaining minutes just from a day which has a value of 1 .. 7
Forum: Scripting Help 07/05/2019, 11:28 PM
Replies: 6
Views: 146
Posted By TheToretto
Re: weapon config debug

The issuerid is invalid, to avoid that: check if it's invalid \_(ツ)_/

if(issuerid != INVALID_PLAYER_ID && !GetPlayerVirtualWorld(issuerid) && -1 < areaid < MAX_GANGZONES &&...
Forum: Scripting Help 07/05/2019, 11:26 PM
Replies: 6
Views: 102
Posted By TheToretto
Re: Has anyone ever done this before?

Read it or not, you got your answer.
Forum: Scripting Help 07/05/2019, 11:24 PM
Replies: 2
Views: 45
Posted By TheToretto
Re: Debugs errors.

Re-install MySQL plugin version R33, compile and try again, also I don't know why in a configuration file
Forum: Scripting Help 07/05/2019, 10:58 PM
Replies: 6
Views: 102
Posted By TheToretto
Re: Has anyone ever done this before?

Well that's something a computer would not know by itself, you have to manually define all 255 colors and assign to each whatever string you want, and no AFAIK there aren't, as it isn't that much...
Forum: Scripting Help 07/05/2019, 04:34 PM
Replies: 6
Views: 102
Posted By TheToretto
Re: Has anyone ever done this before?

https://forum.sa-mp.com/showthread.php?t=235398
Forum: Scripting Help 07/05/2019, 10:33 AM
Replies: 3
Views: 56
Posted By TheToretto
Re: how to save a string ine this command

Use Strcat (https://wiki.sa-mp.com/wiki/Strcat) for copying strings.

Make sure that the string is empty before using strcat, else you can use Strcpy define without worrying about empty or not, as...
Forum: Gamemode Scripts 07/05/2019, 10:03 AM
Replies: 61
Views: 9,963
Posted By TheToretto
Re: [MySQL R41-4] Login / Register Base Script

Add main(){} to the top of the gamemode. (After the includes, or wherever)
Forum: Scripting Help 28/04/2019, 11:52 PM
Replies: 3
Views: 83
Posted By TheToretto
Re: 3D text label not showing, preview model dialog not working

It has to be a virtual world / interior issue, debug.
Forum: Scripting Help 28/04/2019, 11:03 PM
Replies: 2
Views: 51
Posted By TheToretto
Re: Move Object

if(!strcmp("/abrirporton", cmdtext, true, 10)){
new Float:x, Float:y, Float:z;
GetObjectPos(portoncarcel1, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z)) // Feel free to...
Forum: Scripting Help 28/04/2019, 10:58 PM
Replies: 3
Views: 83
Posted By TheToretto
Re: 3D text label not showing, preview model dialog not working

Because you commented them..?


//BusinessInfo[businessid][bPickup] = CreateDynamicPickup(1272, 1, BusinessInfo[businessid][bPosX], BusinessInfo[businessid][bPosY],...
Forum: Scripting Help 28/04/2019, 09:49 PM
Replies: 1
Views: 56
Posted By TheToretto
Re: Vehicle ID's

You can't modify vehicleid's values, they are auto incremented starting from 1, you should make your own unique vehicle ID variable and depend on it if you want to have a static and fully...
Forum: Scripting Help 28/04/2019, 09:42 PM
Replies: 12
Views: 337
Posted By TheToretto
Re: Owner Car

No, it will return as soon as the first vehicle doesn't match with the one you entered so:


if(vInfo[vehicleid][vehSessionID] == vInfo[vehicleid][vehID])
{
for(new i; i < 4; i++)
{
...
Forum: Scripting Help 28/04/2019, 01:34 PM
Replies: 8
Views: 119
Posted By TheToretto
Re: Error: Function not registered: 'CreateDynamicCP'

In your script, you most likely have "#include <crashdetect>" while that's not needed, except for deep debugging, you don't need it, delete it and re-compile.
Forum: Scripting Help 28/04/2019, 01:32 PM
Replies: 7
Views: 116
Posted By TheToretto
Re: Timer function help

Try:


if(vmodel == 510)
{
d_timer[playerid] = SetTimerEx("DvirReset",120000,false,"i",playerid);
printf("Debug: Playerid %d", playerid);
}
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 08:52 PM.


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