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: Sellize
Forum: Scripting Help 17/03/2018, 12:10 PM
Replies: 11
Views: 1,651
Posted By Sellize
Re: Adding image to server

http://forum.sa-mp.com/showthread.php?t=274064

that's the closest you'll get to doing that
Forum: Scripting Help 12/03/2018, 12:10 PM
Replies: 6
Views: 420
Posted By Sellize
Re: MySQL based vehicle system..

yes in mysql format you should always use %e to format a string. that'll escape the string before inserting it, read more here (https://en.wikipedia.org/wiki/SQL_injection)if you're interested
Forum: Scripting Help 12/03/2018, 12:06 PM
Replies: 6
Views: 420
Posted By Sellize
Re: MySQL based vehicle system..

you're inserting floats and integers into your database as a string

this should fix it:


VALUES ('%e', %d, %f, %f, %f, %f, %d, %d, %d, %d, %d, %d, '%s')


also I see that you're using %s to...
Forum: Client Support 27/01/2018, 09:04 PM
Replies: 15
Views: 3,237
Posted By Sellize
Re: SA-MP

calcor
Forum: Includes 27/01/2018, 05:09 PM
Replies: 16
Views: 3,888
Posted By Sellize
Re: EasyCP - Creating CheckPoints easily.

Great job, this can be very, very useful! Looking forward to any future updates :)
Forum: Scripting Help 09/12/2017, 09:44 AM
Replies: 8
Views: 436
Posted By Sellize
Re: Public function cannot be used (undefined?)

Public so that it's globally accessible, I tried to remove the public & forwards, but it still shows the same errors
Forum: Scripting Help 09/12/2017, 09:12 AM
Replies: 8
Views: 436
Posted By Sellize
Re: Public function cannot be used (undefined?)

Bump. Still had no solution to this
Forum: Scripting Help 08/12/2017, 12:35 PM
Replies: 8
Views: 436
Posted By Sellize
Re: Public function cannot be used (undefined?)

No, you can in fact include "modular" parts of your script via the gamemodes folder. It works for like 20+ other modules in the script, just not this one.
Forum: Scripting Help 08/12/2017, 11:56 AM
Replies: 8
Views: 436
Posted By Sellize
Public function cannot be used (undefined?)

So in gamemodes/gm.pwn I have the following on line 2505

#include "../gamemodes/inc/cell_main.inc"

The file in gamemodes/inc/cell_main.inc has the follow public (and forwarded) function:
...
Forum: Includes 01/12/2017, 10:10 AM
Replies: 40
Views: 16,234
Posted By Sellize
Re: MenuStore (Build dynamic stores with TextDraws)

I really, really appreciate this. This is so awesome and it looks great.

Thank you!

edit: server seems to crash after OnPlayerSpawn, any idea why this happens?

edit2: crashdetect log:

...
Forum: Scripting Help 07/01/2017, 05:22 PM
Replies: 20
Views: 837
Posted By Sellize
Re: Please help me, friend...

If you'd like to change the name of the mode you can use the following function in your script

SetGameModeText("Team Deathmatch");
Forum: Scripting Help 11/12/2016, 08:18 PM
Replies: 2
Views: 291
Posted By Sellize
Re: Tag mismatches DestroyAllLabels() function

Confusing. I thought you only used that when creating the variable. It works, so thanks!
Forum: Scripting Help 11/12/2016, 07:49 PM
Replies: 2
Views: 291
Posted By Sellize
Tag mismatches DestroyAllLabels() function

stock DestroyAllLabels() // Destroy ALL 3d labels on the server
{
for(new i; i < MAX_3DTEXT_GLOBAL; i++)
{
if(IsValidDynamic3DTextLabel(i)) DestroyDynamic3DTextLabel(i);
}
return 1;
}
...
Forum: Scripting Help 25/10/2016, 07:24 AM
Replies: 7
Views: 657
Posted By Sellize
Forum: Scripting Help 24/10/2016, 02:34 PM
Replies: 7
Views: 657
Posted By Sellize
Can't compile with sublime text, however works in pawno

I've set up sublime to compile from the location of the compiler, however when I compile in sublime I get 65+ errors:
warning 219: local variable "i" shadows a variable at a preceding level
...
Forum: Gamemode Scripts 20/07/2016, 07:04 AM
Replies: 114
Views: 38,690
Posted By Sellize
Re: Zeus's Cops And Robbers - NVCNR Edit.

nice gamemode but ive heard rumors that zeus likes boys so i wont download it
Forum: Client Support 06/07/2016, 08:50 AM
Replies: 4
Views: 1,251
Posted By Sellize
Re: Won't Let me install SA-MP

i think it was life telling you to stop playing this shit
Forum: Everything and Nothing 01/03/2016, 11:35 AM
Replies: 18
Views: 870
Posted By Sellize
Re: Wannabes be like

.. did he really just list carding as a skill
Forum: Scripting Help 21/01/2016, 08:58 AM
Replies: 44
Views: 1,746
Posted By Sellize
Re: Problem with Editor

Did you try reinstalling?
Forum: Everything and Nothing 17/01/2016, 02:51 PM
Replies: 22
Views: 2,129
Posted By Sellize
Re: How did you learn scripting?

Copying and pasting honestly.
Forum: Includes 06/01/2016, 11:08 AM
Replies: 43
Views: 14,768
Posted By Sellize
Re: Alternative Dialogs - Dialogs with the new design

That's a little ugly, I don't know why anyone would use it over the default dialogs but nice effort nonetheless.
Forum: Everything and Nothing 05/01/2016, 11:15 AM
Replies: 24
Views: 1,906
Posted By Sellize
Re: a small project

http://i.imgur.com/XKqAOjr.png
Forum: Scripting Help 05/01/2016, 09:41 AM
Replies: 31
Views: 1,760
Posted By Sellize
Re: When a player is low health, sending a client message.

Sure your way works too, but I don't think OnPlayerTakeDamage gets triggered when for example SetPlayerHealth(playerid, 19);
Forum: Scripting Help 05/01/2016, 08:54 AM
Replies: 31
Views: 1,760
Posted By Sellize
Re: When a player is low health, sending a client message.

Saffiers code is close, but that doesn't make correct use of the GetPlayerHealth function and it would spam the player, even if it worked.

This is to give you a rough idea how you could do it,...
Forum: Filterscripts 31/12/2015, 01:39 PM
Replies: 27
Views: 15,313
Posted By Sellize
Re: Cop Objects [Roadblocks, Signs & More]

Quite cool, I like the ease of it.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 07:14 AM.


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