SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 219
Search took 0.01 seconds.
Search: Posts Made By: tom_jonez
Forum: Server Support 11/12/2009, 02:22 AM
Replies: 30
Views: 3,014
Posted By tom_jonez
Re: This VPS Worth it?

Correct. That #5 package isnt that bad of a deal...
Forum: Server Support 11/12/2009, 02:19 AM
Replies: 9
Views: 1,330
Posted By tom_jonez
Re: Why does my ip change

Basically, you are receiving your ip via DHCP from your isp. Call your ISP and ask them if they offer static ip addresses to residents. There may be an additional, small monthly fee($1.00-$5.00...
Forum: Help Archive 10/12/2009, 10:32 PM
Replies: 9
Views: 1,105
Posted By tom_jonez
Forum: Help Archive 10/12/2009, 12:09 AM
Replies: 9
Views: 1,105
Posted By tom_jonez
Re: Having trouble with fwrite

are u effing kidding me? except for 3 lines, everything is indented perfectly...


and backwards, ill pm u it

EDIT: nvm i wont pm. if you need anymore code, tell me
Forum: Help Archive 10/12/2009, 12:06 AM
Replies: 9
Views: 1,105
Posted By tom_jonez
Re: Having trouble with fwrite

Thank you so much backwards.
Forum: Help Archive 09/12/2009, 08:33 PM
Replies: 9
Views: 1,105
Posted By tom_jonez
Re: Having trouble with fwrite

Please please pleaseee. Crucial functioN!
Forum: Help Archive 08/12/2009, 06:43 PM
Replies: 9
Views: 1,105
Posted By tom_jonez
Re: Having trouble with fwrite

Can I get some help on some file experts?
Forum: Help Archive 08/12/2009, 01:09 AM
Replies: 9
Views: 1,105
Posted By tom_jonez
Having trouble with fwrite

Gotta say, I hate working with files, but sometimes u have to :'(

Anyways, heres the scenario. I am trying to make a simple setVarInFile function to rewrite a variable, just like dudb but a little...
Forum: Tutorials 07/12/2009, 01:26 AM
Replies: 1,120
[Tutorial] Creating a new NPC
Views: 438,726
Posted By tom_jonez
Re: Tutorial -> Creating a new NPC

just made a pilot one. its fun :D
Forum: Help Archive 02/12/2009, 11:50 PM
Replies: 14
Views: 1,780
Posted By tom_jonez
Re: [HELP] Loading player variables - MySQL

As usual,cannot write a better code, just use a stupid code, the stupid does not mean the stupid way.
[/quote]php wouldnt give me this problem. :( only pawn
Forum: Help Archive 02/12/2009, 11:49 PM
Replies: 18
Views: 1,714
Posted By tom_jonez
Re: [HELP] #DEFINE Question

I tried:


stock ListpInfo(cell)
{
return userTableStr[cell];
}

and then:
Forum: Help Archive 02/12/2009, 10:18 PM
Replies: 18
Views: 1,714
Posted By tom_jonez
Re: [HELP] #DEFINE Question

Im not worried about the actual value. I just need the definition to write whatever cell of the array i pick into the PAWNO code.

Look at the above enums. I want it to type into pawno:...
Forum: Help Archive 02/12/2009, 09:22 PM
Replies: 18
Views: 1,714
Posted By tom_jonez
Re: [HELP] #DEFINE Question

u realize thatll print the username continuously?
Forum: Help Archive 02/12/2009, 09:05 PM
Replies: 18
Views: 1,714
Posted By tom_jonez
Re: [HELP] #DEFINE Question

@mave
Tried, but Im getting these damn index errors still...
#define variable(%0,%1) \
Players[%0][%1]
#define vname(%0) \
userTableStr[%0]...
Forum: Help Archive 02/12/2009, 07:43 PM
Replies: 14
Views: 1,780
Posted By tom_jonez
Re: [HELP] Loading player variables - MySQL

and write that for all of the 20+ fields that will be increasing when i get into the gamemode?
Forum: Help Archive 02/12/2009, 07:42 PM
Replies: 18
Views: 1,714
Posted By tom_jonez
Re: [HELP] #DEFINE Question

yeah, i think so...

#define var(%0,%1) \
Players[%0][%1]

var(playerid,username)

would that work?
Forum: Help Archive 02/12/2009, 03:11 AM
Replies: 18
Views: 1,714
Posted By tom_jonez
Re: [HELP] #DEFINE Question

no that wont work because itll output:

format(format(var,64,"%s",Players[playerid][username]),sizeof(format(var,64,"%s",Players[playerid][username])),"%s",field);
Forum: Help Archive 02/12/2009, 02:02 AM
Replies: 18
Views: 1,714
Posted By tom_jonez
Re: [HELP] #DEFINE Question

i need to use it like this:
new var[64];
format(var,64,"%s",username[playerid]); //in this case, R4nk3d
#define a var
format(a,sizeof(a),"%s",field);

so i can put in say......
Forum: Help Archive 02/12/2009, 01:24 AM
Replies: 14
Views: 1,780
Posted By tom_jonez
Forum: Help Archive 02/12/2009, 12:25 AM
Replies: 14
Views: 1,780
Posted By tom_jonez
Re: [HELP] Loading player variables - MySQL

if(sizeof(Players[][pInfo:fval])<2){

is returning errors:
Forum: Help Archive 01/12/2009, 08:53 PM
Replies: 18
Views: 1,714
Posted By tom_jonez
[HELP] #DEFINE Question

How would i define 1 word as a variable?

ex:
new var[64];
format(var,64,"%s",username[playerid]); //in this case, R4nk3d
#define a "var"

So when I type print(var) it prints R4nk3d.
Forum: Help Archive 01/12/2009, 07:31 PM
Replies: 14
Views: 1,780
Posted By tom_jonez
Re: [HELP] Loading player variables - MySQL

Alright, now it prints as 0. Thank you for clearing that small bit up for me and explaining it.

let me give some more code:

heres the player info enum:
enum pInfo
{
username[28],...
Forum: Help Archive 01/12/2009, 01:14 AM
Replies: 14
Views: 1,780
Posted By tom_jonez
Re: [HELP] Loading player variables - MySQL

gotcha, well i got more in depth to figuring it out.

btw, loggedin == 0, means theyre banned, and 1 means theyre logged in now. it unloads it and instead of it being null/0 it now says 1....
Forum: Help Archive 30/11/2009, 11:56 PM
Replies: 14
Views: 1,780
Posted By tom_jonez
Re: Loading player variables

can you explain that code a bit more please?
Forum: Help Archive 30/11/2009, 11:22 PM
Replies: 14
Views: 1,780
Posted By tom_jonez
[HELP] Loading player variables - MySQL

Hey guys, im making an "auto unload variable" script to unload variables from an sql database and load them into an array for the player variables. Im having trouble tho...

//login command
.... ...
Showing results 1 to 25 of 219

 

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


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