SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Jonny5
Forum: Scripting Help 12/07/2015, 12:56 AM
Replies: 1
Views: 408
Posted By Jonny5
Re: Help-just 5 errors (:

without the code from them lines no one will be able to help you
Forum: Scripting Help 12/07/2015, 12:53 AM
Replies: 1
Views: 199
Posted By Jonny5
Re: Will this work? Really small question

no it wont


you could use switch instead




switch (skinVal )
{
Forum: Scripting Help 28/06/2015, 03:27 PM
Replies: 3
Views: 305
Posted By Jonny5
Re: Textdraw Problems

for(new i = 0;i<6;i++)
{
TextDrawShowForPlayer(playerid, Spawn[i]);
}
Forum: Scripting Help 28/06/2015, 02:56 PM
Replies: 5
Views: 804
Posted By Jonny5
Re: Invalid Memory Access?

first off please dont bump before 24 hours, your post will be answered when someone sees it and has an answer for you.


second the function in question is

CMD:moneybag

not

CMD:moneyrush
Forum: Scripting Help 28/06/2015, 02:50 PM
Replies: 10
Views: 2,025
Posted By Jonny5
Re: Hi any idea why do we do this?

its common practice to run "clean up" code when exiting any app.

its simple if you dont want to destroy them then dont...
if the abstract machine("server") gets shut down surly everything will be...
Forum: Scripting Help 28/06/2015, 02:46 PM
Replies: 1
Views: 328
Posted By Jonny5
Re: SetPlayerAttachedObject

did you look at the attachments.pwn filterscript that comes in the server package?
everything you need is in there.
Forum: Scripting Help 25/06/2015, 03:46 AM
Replies: 5
Views: 708
Posted By Jonny5
Re: Saving CreateObject() in a .txt file?

sqlite is native to samp.
heres what mine look like
http://pastebin.com/sidc9w16
its from 2012 but it will give you an idea

mine was not really a map editor,
youd have to add code to make...
Forum: Scripting Help 25/06/2015, 03:38 AM
Replies: 6
Views: 855
Posted By Jonny5
Forum: Scripting Help 25/06/2015, 03:34 AM
Replies: 5
Views: 708
Posted By Jonny5
Re: Saving CreateObject() in a .txt file?

personally i would use sqlite or mysql
but to read a file you use fread
http://wiki.sa-mp.com/wiki/Fread
Forum: Scripting Help 25/06/2015, 03:26 AM
Replies: 5
Views: 708
Posted By Jonny5
Re: Saving CreateObject() in a .txt file?

// example SaveToFile("objs.txt","CreateObject(param, param, param, param...);");


stock SaveToFile(path[],text[]){
new File:handle = fopen(path, io_append);
if(handle)
{
new...
Forum: Scripting Help 23/06/2015, 10:16 PM
Replies: 6
Views: 486
Posted By Jonny5
Re: Dying to take punches

new Float:aPlayerPunchHealth[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
GetPlayerHealth(playerid,aPlayerPunchHealth[playerid]);
return 1;
}

public OnPlayerTakeDamage(playerid,...
Forum: Scripting Help 23/06/2015, 09:58 PM
Replies: 6
Views: 486
Posted By Jonny5
Re: Dying to take punches

i would use
http://wiki.sa-mp.com/wiki/OnPlayerTakeDamage

even though both are called after damage has been done
you could use http://wiki.sa-mp.com/wiki/SetPlayerHealth
to restore the old...
Forum: Scripting Help 22/06/2015, 02:43 AM
Replies: 6
Views: 514
Posted By Jonny5
Re: Adding extra line to INI after player's registering

best bet is not to use INI for registration and user system
"The INI file format is an informal standard for configuration files for some platforms or software"
my advice is to switch to sqlite or...
Forum: Scripting Help 21/06/2015, 02:55 PM
Replies: 3
Views: 405
Posted By Jonny5
Re: STOCK

what do you want the stock todo?

a stock is just a function/ or var that may or may-not be used at run-time.

the compiler checks at compile time for its usage and if it is not used it is...
Forum: Scripting Help 17/06/2015, 03:33 AM
Replies: 7
Views: 802
Posted By Jonny5
Re: [HELP]Interior help!

not really but that is another approach provided you allow other players into your house.
Forum: Scripting Help 17/06/2015, 03:31 AM
Replies: 7
Views: 802
Posted By Jonny5
Re: [HELP]Interior help!

set a different virtual world for each player when entering an interior.
when you exit you should set it back tot he same virtual world so they can see each other on the streets
Forum: Tutorials 07/06/2015, 02:33 PM
Replies: 4
[Tutorial] ALS Hook Method 7
Views: 8,980
Posted By Jonny5
Re: ALS Hook Method 7

I never knew about this method,
I have converted to using this and it is the simplest of the methods.

I will be upgrading my als generator soon to use this method

thx
Forum: Tools and Files 24/05/2015, 05:23 AM
Replies: 128
Views: 42,640
Posted By Jonny5
Re: PAWN Playground - Online code runner

yes I know all about linux and how easy it can be to install,
and that android uses linux kernel . lol

but not doing that right now that is why i wanted to see if anyone is hosting a live copy...
Forum: Tools and Files 24/05/2015, 05:10 AM
Replies: 128
Views: 42,640
Posted By Jonny5
Re: PAWN Playground - Online code runner

i dont have a linux box right now.

thanks for the link,
it dont show the preprocessor replacements like ppg
or atleast I have not seen how to enable that.

it was a big help with ppg for...
Forum: Tools and Files 24/05/2015, 03:35 AM
Replies: 128
Views: 42,640
Posted By Jonny5
Re: PAWN Playground - Online code runner

does anyone currently host a public version of this?




thanks
Forum: Tutorials 21/05/2015, 01:08 PM
Replies: 26
Views: 4,668
Posted By Jonny5
Re: How to make a fast engine system!

Well for searching your code might be one reason...
but that's not likely to be the case with most people.
They do it because they don't know better.
Personally my code is split up in away i can...
Forum: Tutorials 20/05/2015, 10:43 PM
Replies: 26
Views: 4,668
Posted By Jonny5
Re: How to make a fast engine system!

something like this would be less code


CMD:engine(playerid, params[]) //THE COMMAND THE PLAYER TYPES
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "You must...
Forum: Scripting Help 19/05/2015, 12:23 AM
Replies: 3
Views: 846
Posted By Jonny5
Re: Error 055: start of function body without function header

you have an extra comma at the end of the array

"Cuneo"}, //Heli

"Cuneo"},//Heli


remove the comma and try to compile again
Forum: Tutorials 18/05/2015, 01:25 AM
Replies: 53
Views: 7,509
Posted By Jonny5
Re: Mental Scripting Preparation | You Can Do It!

Honestly when i seen the title i was thinking.... oh boy another dumb tut.

I was wrong, this is very good info for new scripters and can be applied outside SAMP.

I personally started scripting...
Forum: Tutorials 18/05/2015, 12:50 AM
Replies: 91
Views: 27,165
Posted By Jonny5
Re: Stop the abuse of stock!

I use stock but only in one file normally.
The reason is I have a include with many functions i wrote or some from the useful functions thread.
These are functions that may or may not be used in a...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 12:02 AM.


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