SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 95
Search took 0.01 seconds.
Search: Posts Made By: icra
Forum: Scripting Help 23/05/2015, 12:26 PM
Replies: 5
Views: 688
Posted By icra
Re: Fetching MySQL row crashes the server

Yup, it works fine in a Windows 95 partition in my 2nd laptop.
But i need it running there, i've got NET Framework 3.5 working fine there and still crashes.
It crashes at the first mysql_get_field...
Forum: Scripting Help 22/05/2015, 09:00 PM
Replies: 5
Views: 688
Posted By icra
Re: Fetching MySQL row crashes the server

I could update it, but i don't really like cached version.
I prefer old MySQL, i already customized it myself working on the sourcecode, optimizing it.
But i can't still find a reason for the crash.
Forum: Server Support 22/05/2015, 12:06 PM
Replies: 10
Views: 3,762
Posted By icra
Re: Samp Exploit? Attack? What?

If it's how Wizzard2H says,

just check in OnPlayerConnect if there's someone other connected with the same ip address and kick him if that's true.
Forum: Scripting Help 22/05/2015, 05:48 AM
Replies: 5
Views: 688
Posted By icra
Fetching MySQL row crashes the server

Hello, i've got this problem since few months.
I'm coding a gamemode using BlueG's MySQL R5 plugin on Windows 7 32 bit. When i started this gamemode (still on Windows 7 32 bit) it was working fine...
Forum: Scripting Help 22/05/2015, 05:34 AM
Replies: 3
Views: 731
Posted By icra
Re: GetVehicleRotationQuat

http://forum.sa-mp.com/showthread.php?t=542957
Forum: Scripting Help 21/05/2015, 02:48 AM
Replies: 4
Views: 340
Posted By icra
Re: PHP (Web) > SA-MP Server

Cool, that's what i was looking for.
I don't like HTTP functions, they're dangerous.
Forum: Scripting Help 21/05/2015, 02:42 AM
Replies: 4
Views: 340
Posted By icra
Re: PHP (Web) > SA-MP Server

The only way this API gives to call a remote function is trough RCON...
This means i can't use remote functions in my gamemode, but only in filterscripts.
Forum: Scripting Help 21/05/2015, 02:39 AM
Replies: 2
Views: 644
Posted By icra
Re: /clearchat command help

Use this function.


ClearChat(playerid=-1) {
for(new i = 0; i < 20; i++) {
if(playerid == -1) {
SendClientMessageToAll(-1, " ");
} else {
...
Forum: Scripting Help 21/05/2015, 02:34 AM
Replies: 4
Views: 340
Posted By icra
PHP (Web) > SA-MP Server

Hello everyone,

i was asking if it was possible to create a connection between a PHP web page and a SA-MP Server.
I mean,

Is there a way to send a "command" trough sockets from PHP to the...
Forum: Scripting Help 20/05/2015, 07:34 AM
Replies: 8
Views: 545
Posted By icra
Re: DM Script Problem

Yep, that was the problem, but he was still trying to use ARGB colors into a existing string.
This is not allowed, because you have got to use RGB colors.

To convert an ARGB color to RGB, just...
Forum: Scripting Help 20/05/2015, 07:29 AM
Replies: 7
Views: 756
Posted By icra
Re: Where is better way mysql?

Personally, i update every single query ad every update trough a function i did:

SavePlayerDataInt(playerid, field[], value);

Suggest you not saving users with a giant query, it's really heavy...
Forum: Scripting Help 20/05/2015, 06:16 AM
Replies: 2
Views: 368
Posted By icra
Re: How can mix these scripts?

Can't understand what you want to do.
I see your code is writen in Italian, if you are explain yourself using italian, i'll understand better as i am italian too.
Forum: Scripting Help 20/05/2015, 06:11 AM
Replies: 8
Views: 800
Posted By icra
Re: Is this possible to make it?

It is possible, you'll need some PHP knowledges mainly, and basicly some HTML.
I REALLY suggest you using MySQL, convert your gamemode to MySQL even if you're not going to code the ucp.

Take a...
Forum: Scripting Help 20/05/2015, 06:07 AM
Replies: 8
Views: 610
Posted By icra
Re: Help Me Spawning In Death Stadium Interior

Not sure he asked for a command
Forum: Scripting Help 20/05/2015, 06:04 AM
Replies: 14
Views: 798
Posted By icra
Re: Help for ucp

First of all you'll have to get a knowledge of HTML & CSS to write your UCP page.

Let's make an example:


<html>
<head>
<title>Page Title UCP</title>
</head>
<body>
Forum: Scripting Help 20/05/2015, 05:49 AM
Replies: 8
Views: 668
Posted By icra
Re: color saving/loading zcmd

Use search function, you'll find A LOT of tutorials.

Anyway, use SQL.
Forum: Scripting Help 20/05/2015, 05:37 AM
Replies: 9
Views: 697
Posted By icra
Re: error i cant solve it pls help

This means you aren't using the pawno compiler which contains, in its folder, the a_zone include.

So, go where you have got the a_zone.inc file, open the pawno.exe editor and load your gamemode...
Forum: Scripting Help 20/05/2015, 05:34 AM
Replies: 8
Views: 610
Posted By icra
Re: Help Me Spawning In Death Stadium Interior

You'll need the Stadium Interior ID & Coordinate.

Then,


public OnPlayerDeath(playerid) {
if(IsPlayerInRangeOfPoint(playerid,500.0,STADIUM_X,STADIUM_Y,STADIUM_Z) &&...
Forum: Scripting Help 18/05/2015, 05:13 AM
Replies: 3
Views: 620
Posted By icra
Re: I want to create Euro

Can't understand where the problem is.
You only have to create a textdraw and a command to change values.
If you're having problem with the textdraw or the command, tell me and i can help you
Forum: Scripting Help 18/05/2015, 05:02 AM
Replies: 10
Views: 718
Posted By icra
Re: What is better

Global variables can be conflicted, never use if you're going to change them.
So the second case is better.



Functions can have parameters.

It's not always required (like in the code...
Forum: Scripting Help 18/05/2015, 04:58 AM
Replies: 5
Views: 560
Posted By icra
Re: Tag mismatch..

Pawn compiler recognizes ".0" as a second dimension for the variable, reading it as a Float.
Make sure when you declare "Fuel" you declare it as a Float.

Example:


new...
Forum: Scripting Help 18/05/2015, 04:56 AM
Replies: 24
Views: 1,138
Posted By icra
Re: Problem with freezing REP++

I doubt it's a server sided problem. Try posting here your OnPlayerSpawn and OnPlayerDeath classes.
Forum: Scripting Help 18/05/2015, 04:51 AM
Replies: 13
Views: 832
Posted By icra
Re: auto save/load color

Does your gamemode haves a loading and saving system?
If yes, you can show me and i'll edit it to make it work with colors system too.
Else, you'll have to code one following a guide in this forum....
Forum: Scripting Help 16/05/2015, 01:30 PM
Replies: 10
Views: 912
Posted By icra
Re: Animation won't play

You should use "PreloadAnimationLib" function.

Ex.


public OnPlayerSpawn(playerid) {
PreloadAnimationLib(playerid, "BD_FIRE");
}
Forum: Scripting Help 16/05/2015, 01:12 PM
Replies: 4
Views: 637
Posted By icra
Re: SQL unescape string

Nope,

mysql_real_escape_string puts a \ before ', "escaping it". In this way, the query won't recognize it as the end of the argument.

Example:

string = "Hit 'Em Up"
...
Showing results 1 to 25 of 95

 

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


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