SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.05 seconds.
Search: Posts Made By: Cameltoe
Forum: Server Support 31/12/2014, 08:47 AM
Replies: 21
Views: 1,600
Posted By Cameltoe
Re: [ HELP ] MySQL

The query isn't really a query at all, it's just a bunch of chars. Please upload the file you are trying to upload to db on pastebin.
Forum: Server Support 31/12/2014, 08:04 AM
Replies: 21
Views: 1,600
Posted By Cameltoe
Re: [ HELP ] MySQL

It is slow, and will result in great lags when server reaches and x amount of players. Depending on the distance between these two (Gameserver & mysql server).
Forum: Scripting Help 31/12/2014, 12:49 AM
Replies: 2
Views: 526
Posted By Cameltoe
Re: Streamer, array, polygons.

cmd(sel4, playerid, params[])
{

new str2[256], iss;
format(str2, sizeof(str2), "%f, %f %f, %f %f, %f %f, %f", PlayerInfo[playerid][pSelPos][0], PlayerInfo[playerid][pSelPos][1],...
Forum: Scripting Help 31/12/2014, 12:04 AM
Replies: 6
Views: 542
Posted By Cameltoe
Re: Save warned times for player in file via y-ini

Try this:


INI_WriteInt(File, "Warns", WarnTimes[playerid]);
Forum: Scripting Help 30/12/2014, 11:26 PM
Replies: 1
Views: 245
Posted By Cameltoe
Re: keep cars from respawning

http://wiki.sa-mp.com/wiki/CreateVehicle


// Add a Hydra to the game with a respawn time of 60 seconds
CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 60); // Change 60...
Forum: Scripting Help 30/12/2014, 10:07 PM
Replies: 18
Views: 1,095
Posted By Cameltoe
Re: Need Help With Robbing Bussiness System!!! +REP

Note that this is not the script request section. The section you posted this in is the "Scripting Help" Section. You need to give us some sample code that you are struggling with, and not just...
Forum: Scripting Help 30/12/2014, 09:58 PM
Replies: 8
Views: 456
Posted By Cameltoe
Re: Help me

You did notice that part the i quoted out with "// This line to regular SendClientMessage as you are already looping at #1"

You were supposed to edit that line and make it send the message with...
Forum: Scripting Help 30/12/2014, 09:54 PM
Replies: 4
Views: 411
Posted By Cameltoe
Re: [Help]Timer

http://wiki.sa-mp.com/wiki/SetTimer



public RemoveRobbery()
{
DestroyPickup(pickup4d);
DestroyPickup(pickup4d1);
DestroyPickup(pickup4d2);
DestroyPickup(pickup4d3);
Forum: Scripting Help 30/12/2014, 06:49 PM
Replies: 8
Views: 456
Posted By Cameltoe
Re: Help me

As far as i see it you need to change:


forward StopPaintball();
public StopPaintball()
{
for(new i = 0; i < MAX_PLAYERS; i ++) // #1 Loop
{
if(InPaintball[i] == 1)
{
Forum: Scripting Help 30/12/2014, 06:05 PM
Replies: 2
Views: 284
Posted By Cameltoe
Re: House help please

To simplify this i would just send an request to the db to check if the user already has a house:

then if he exists with either Name or OwnerId inside the houses table, return the SCM :)
Forum: Scripting Help 30/12/2014, 05:53 PM
Replies: 13
Views: 971
Posted By Cameltoe
Re: AW: Online time

It's been a while since i posted here, and i'm quite outdated on the subject. But the way i would do it is to store just minutes. After 60 minutes, reset the variable to zero and send a mysql request...
Forum: Scripting Help 06/02/2014, 05:41 PM
Replies: 5
Views: 755
Posted By Cameltoe
Re: Getting vehicle price according to modelid

If i were you really, i would jump into some MySQL coding. Won't be just as efficient, but it allows you to have dynamic prices. So if you want to change the prices while the server is running,...
Forum: Scripting Help 15/11/2013, 08:29 AM
Replies: 12
Views: 971
Posted By Cameltoe
Re: Need help with some function.

you use new Captured[MAX_PLAYERS][30]; with another range. new Captured[MAX_PLAYERS]; is the right.
Forum: Gamemode Scripts 15/11/2013, 07:30 AM
Replies: 88
Views: 44,101
Posted By Cameltoe
Re: Base Roleplay Script [BEGINNERS]

Find these lines:

SetPlayerPos(playerid, 982.1890, -1624.2583, 14.9526); // Change these coordinates to ls.
SetPlayerFacingAngle(playerid, 90);
Forum: Scripting Help 15/11/2013, 07:22 AM
Replies: 12
Views: 971
Posted By Cameltoe
Re: Need help with some function.

I assume theres something wrong with your variable. let us see were "Captured" is created.
Forum: Scripting Help 15/11/2013, 06:20 AM
Replies: 12
Views: 971
Posted By Cameltoe
Re: Need help with some function.

if(Captured[playerid] == 0 && IsPlayerCapturing[playerid][CAPZONE] == 1) is the right code. Show us the errors.
Forum: Scripting Help 04/11/2013, 06:50 PM
Replies: 1
Views: 406
Posted By Cameltoe
Re: siren help

Wrong section mister, refer to the script request section.
Forum: Scripting Help 04/11/2013, 11:35 AM
Replies: 7
Views: 900
Posted By Cameltoe
Re: From Civilian Color to Wanted Color

If he has a code that initiates after someone is being robbed, add that code under the last part of that script. Otherwise you can setup a timer that starts at onplayerconnect. Name it for example...
Forum: Scripting Help 04/11/2013, 11:31 AM
Replies: 14
Views: 1,345
Posted By Cameltoe
Re: cod /pay for Transfer Money To players

Like mentioned before, learn the basics of pawn scripting before trying something with this level.
Forum: Scripting Help 04/07/2013, 01:21 AM
Replies: 9
Views: 1,165
Posted By Cameltoe
Forum: Scripting Help 04/07/2013, 01:17 AM
Replies: 5
Views: 1,017
Posted By Cameltoe
Re: Anyone know a good working Dynamic house system?

Agree, the only way to achieve a "good" dynamic-anything is to script one for youself, there will always be functions that you either don't want or functions that aren't there. Script it yourself,...
Forum: Scripting Help 25/06/2013, 05:22 PM
Replies: 9
Views: 1,165
Posted By Cameltoe
Re: Holding object after reconnect

Well, iv'e bumped this thread a couple of times now. But i still struggle with this.. Anyone know a solution to this problem ?
Forum: Scripting Help 17/06/2013, 05:57 PM
Replies: 9
Views: 1,165
Posted By Cameltoe
Re: Holding object after reconnect

This problem still exist, can't find a solution to this.
Forum: Scripting Help 13/06/2013, 06:54 AM
Replies: 9
Views: 1,165
Posted By Cameltoe
Re: Holding object after reconnect

Yes, well this "bug" or even scripting failure still persist.. Any ideas?

Guess i'm just using it wrong, so i'll post it here.

PlayerVar[playerid][WorkObject] =...
Forum: Scripting Help 12/06/2013, 04:57 PM
Replies: 17
Views: 1,630
Posted By Cameltoe
Re: Re : Re: Re : Re: Re : Re: help , CreateDynamicObject

Yes, change those createobjects to createdynamicobjects and you are good to go :)
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 03:38 PM.


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