SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 141
Search took 0.00 seconds.
Search: Posts Made By: 1337pr0
Forum: Help Archive 07/06/2009, 09:11 AM
Replies: 1
Views: 1,516
Posted By 1337pr0
Re: is player on vehicle

IsPlayerOnAnyVehicle(playerid)
{
new Float:vehx, Float:vehy, Float:vehz, Float:plyx, Float:plyy, Float:plyz;
GetVehiclePos(v, plyx, plyy, plyz);
for (new v; v < MAX_VEHICLES; v++)
{
...
Forum: Everything and Nothing 30/04/2009, 09:49 AM
Replies: 213
Views: 21,997
Posted By 1337pr0
Re: What server do You play on?

Interesting to see people's preferences, lots of CrazyBob's players :)
Forum: Help Archive 23/04/2009, 10:56 PM
Replies: 5
Views: 1,056
Posted By 1337pr0
Re: Question about arrays

If you are using MySQL you could use my weapon functions:

EDIT: decided it was too big, moved to http://pastebin.com/f29820450

If you're not using MySQL, then I assume you have some sort of...
Forum: Everything and Nothing 22/04/2009, 09:47 AM
Replies: 213
Views: 21,997
Posted By 1337pr0
Re: What server do You play on?

I play on CrazyBobs whenever I dare, but it's soon followed by /q cause of all the hackers =/ They keep stealing my drugs lol.

So now I just troll around, looking for any new CnR servers. I found...
Forum: Help Archive 22/04/2009, 06:14 AM
Replies: 7
Views: 2,322
Posted By 1337pr0
Re: Bugfix: strcmp

Personally, I would use this:


stock strcmpEx(const string1[], const string2[], bool:ignorecase=false, length=cellmax)
{
if((!strlen(string1) && !strlen(string2))) return 0; // Added this,...
Forum: Help Archive 20/04/2009, 11:04 PM
Replies: 4
Views: 863
Posted By 1337pr0
Re: Error Trapping

That's not the issue... I am asking about PAWN error trapping. try and catch don't work, either.

Oh, and they MySQL thing: It's probably better just to check if the password contains letters and...
Forum: Help Archive 19/04/2009, 10:40 AM
Replies: 4
Views: 863
Posted By 1337pr0
Re: Error Trapping

bump - I really need to know if PAWN can trap errors or not, I can't find much about it...
Forum: Scripting Help 19/04/2009, 12:42 AM
Replies: 4,152
Views: 643,192
Posted By 1337pr0
Re: Little coding questions - For general minor queries 5

Tried this, and with a bit of tinkering, it works now :)
Forum: Scripting Help 18/04/2009, 04:26 AM
Replies: 4,152
Views: 643,192
Posted By 1337pr0
Re: Little coding questions - For general minor queries 5

Hi

I want to be able to call a function like this:

ExampleFunction("string 1", "string 2", "string 3")

For example, this could write 3 files into scriptfiles - string 1, string 2, and string...
Forum: Help Archive 18/04/2009, 02:45 AM
Replies: 3
Views: 1,332
Posted By 1337pr0
Re: GetPlayerState Returning 0 While At Class Selection

Thanks ^^

I remember what happened now =]
Forum: Help Archive 18/04/2009, 01:49 AM
Replies: 3
Views: 1,332
Posted By 1337pr0
GetPlayerState Returning 0 While At Class Selection

Hi

For some reason, nobody on my server can see anyone else, and while players are at class selection, GetPlayerState is returning 0, when it should be returning 7. See...
Forum: Plugin Development 16/04/2009, 01:56 PM
Replies: 1,016
Views: 287,508
Posted By 1337pr0
Re: [REL]SAMP-MySQL v0.14 - Memory Leak FIXED !!!

Ahhh silly me, that makes much more sense :)

I feel like an idiot now :P

Thank you.
Forum: Plugin Development 16/04/2009, 10:06 AM
Replies: 1,016
Views: 287,508
Posted By 1337pr0
Re: [REL]SAMP-MySQL v0.14 - Memory Leak FIXED !!!

Hi

I am making a sort of house system. I want the house owners to be able to give keys to other players. So, what I have done, is added a field in the users table which contains each house ID that...
Forum: Help Archive 16/04/2009, 09:52 AM
Replies: 8
Views: 1,501
Posted By 1337pr0
Re: Variable Array Size

Sorry, but that's incorrect. Say hello to malloc (http://forum.sa-mp.com/index.php?topic=81624.0).

~Cueball~
[/quote]

Yay, I didn't realise there was a malloc we could use for PAWN D:
Forum: Help Archive 15/04/2009, 05:39 AM
Replies: 8
Views: 1,501
Posted By 1337pr0
Re: Variable Array Size

Ok, thank you.
Forum: Help Archive 15/04/2009, 05:35 AM
Replies: 8
Views: 1,501
Posted By 1337pr0
Re: Variable Array Size

error 008: must be a constant expression; assumed zero
invalid array size (negative, zero or out of bounds)
error 036: empty statement
fatal error 107: too many error messages on one line

new...
Forum: Help Archive 15/04/2009, 12:53 AM
Replies: 8
Views: 1,501
Posted By 1337pr0
Variable Array Size

new rn = samp_mysql_num_rows();
new HouseKeyArray[rn];

Why can't this be done? And is there a way to do a similar thing?
Forum: Help Archive 13/04/2009, 03:40 AM
Replies: 3
Views: 4,004
Posted By 1337pr0
Re: Can't Return Float Value?

thanks ^^

works now.
Forum: Help Archive 13/04/2009, 03:02 AM
Replies: 3
Views: 4,004
Posted By 1337pr0
Can't Return Float Value?

Getsomething(somethingid)
{
new query[128];
format(query, sizeof(query), "SELECT `something` FROM `something ` WHERE `something` = something LIMIT 1", something + something);...
Forum: Help Archive 13/04/2009, 12:15 AM
Replies: 4
Views: 863
Posted By 1337pr0
Error Trapping

Hi.

I have a 20000 line script. It uses MySQL.

Every now and then, the server crashes. Sometimes when players are online, sometimes not. Sometimes frequently, sometimes not. The script is based...
Forum: Help Archive 30/03/2009, 06:44 AM
Replies: 10
Views: 1,326
Posted By 1337pr0
Re: Fix Car

OnGameModeInit

SetTimer("CheckBrokenCars",1000,true);

forward CheckBrokenCars();
public CheckBrokenCars()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) &&...
Forum: Help Archive 26/03/2009, 07:40 PM
Replies: 0
Views: 801
Posted By 1337pr0
3-Deep Arrays

Hi.

I want to do this, and be able to use it as a normal string:


Player[playerid][CrimeList][listID][String]


So I can do something like this:
Forum: Scripting Help 19/03/2009, 06:25 PM
Replies: 4,152
Views: 643,192
Posted By 1337pr0
Re: Little coding questions - For general minor queries 5

I looked at the one from dutils, and it seems to work fine.
Forum: Help Archive 19/03/2009, 04:13 AM
Replies: 2
Views: 1,177
Posted By 1337pr0
Re: AddPlayerClass

Ok, I think i've fixed it now.
Forum: Help Archive 19/03/2009, 03:26 AM
Replies: 2
Views: 1,177
Posted By 1337pr0
AddPlayerClass

AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)


I don't want to have to set Float:x, Float:y, and Float:z,...
Showing results 1 to 25 of 141

 

All times are GMT. The time now is 12:42 PM.


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