SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 262
Search took 0.01 seconds.
Search: Posts Made By: [RP]Rav
Forum: General 19/08/2009, 08:26 AM
Replies: 181
Views: 21,286
Posted By [RP]Rav
Re: New Sa-Mp 0.3 scripting features

shh, I think Kye is sponsored by ServerFFS :mrgreen:
Forum: General 18/08/2009, 08:32 PM
Replies: 181
Views: 21,286
Posted By [RP]Rav
Re: New Sa-Mp 0.3 scripting features

I'd love to see a function that lets an NPC drive somewhere, the roadmaps should already exist in GTA, and making them by yourself is a pain :mrgreen:
Same with walking somewhere, so they won't walk...
Forum: Help Archive 04/04/2009, 06:54 AM
Replies: 7
Views: 1,240
Posted By [RP]Rav
Re: communication in general chat

Use the script request thread if you're not going to make any effort in trying it yourself
Forum: Help Archive 03/04/2009, 11:35 AM
Replies: 3
Views: 1,038
Posted By [RP]Rav
Re: How to create an Admin Comand!?

you need something like this

if ( [admin level] < 1337)
return 0;
Forum: Help Archive 22/03/2009, 11:19 AM
Replies: 5
Views: 2,000
Posted By [RP]Rav
Re: how i can build house in sa:mp

http://forum.sa-mp.com/index.php?action=search
Forum: Help Archive 21/03/2009, 07:54 AM
Replies: 4
Views: 7,399
Posted By [RP]Rav
Re: whats the ID for this animation?

http://wiki.sa-mp.com/wiki/Animations
Forum: Help Archive 21/03/2009, 07:48 AM
Replies: 2
Views: 816
Posted By [RP]Rav
Re: A Question

you could try something like this


if (strcmp(cmdtext, "/am", true) == 0)
{
new string[128];

// strmid(destinaton, source, index start, max length)
strmid(string, cmdtext,...
Forum: Help Archive 21/03/2009, 07:44 AM
Replies: 3
Views: 990
Posted By [RP]Rav
Re: Cannot use gamemode cmds after loaded fs?

look at OnPlayerCommandText, is there a "return 1;" at the end? if so remove it
Forum: Help Archive 21/03/2009, 07:43 AM
Replies: 5
Views: 1,034
Posted By [RP]Rav
Re: Custom MySQLGetPlayerInt(playerid,field[]); Help!

result is an integer, so it should be %d%% (if you want to show percentages) - it should print something like "43%"

%d = integer
%% = percent sign
Forum: Help Archive 20/03/2009, 07:15 AM
Replies: 8
Views: 1,175
Posted By [RP]Rav
Re: cmds always wrong

at then end of every command add
return 1;
Forum: Help Archive 20/03/2009, 07:12 AM
Replies: 12
Views: 1,532
Posted By [RP]Rav
Re: pawno question. code.

http://wiki.sa-mp.com/wiki/SetPlayerWorldBounds - the lazy mans way
Forum: Help Archive 20/03/2009, 07:10 AM
Replies: 1,112
Views: 140,775
Posted By [RP]Rav
Re: Script Request Thread

Plenty of house scripts are already available
Forum: Help Archive 19/03/2009, 10:14 PM
Replies: 3
Views: 966
Posted By [RP]Rav
Re: engine help

your public heading differs from your forwarded heading, redo it.


basicly says it all, the code there cannot be reached, because the function always returns a value before that bit of code

...
Forum: Help Archive 19/03/2009, 08:48 PM
Replies: 20
Views: 1,923
Posted By [RP]Rav
Re: Interior Help

well, the interior ID is wrong, try a few different ones.. 0-20 or something.. or just look it up
Forum: Help Archive 19/03/2009, 08:41 PM
Replies: 6
Views: 1,208
Posted By [RP]Rav
Forum: Scripting Help 19/03/2009, 08:40 PM
Replies: 3
Views: 1,324
Posted By [RP]Rav
Re: Pick A Random Checkpoint For Mission?

new Float: checkpoints[][3] =
{
{ 379.9200,2223.7539,42.0938},
{ 901.1568,1998.0510,60.9141 },
{ 1713.6024,1605.5175,10.0156 },
{ 2597.7217,2269.4827,10.8133 },
{...
Forum: Help Archive 19/03/2009, 08:33 PM
Replies: 6
Views: 1,208
Posted By [RP]Rav
Re: I need some help, adding multiple commands.

hmm, well, err...


public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true) == 0)
{
SendClientMessage(playerid,0xFFFFFFAA,"Need help?");
return 1;
}
Forum: Scripting Help 19/03/2009, 09:26 AM
Replies: 4,133
Views: 616,021
Posted By [RP]Rav
Re: Little coding questions - For general minor queries 5

your function doesn't pass on string as a reference, thus nothing will change
Forum: Help Archive 19/03/2009, 08:36 AM
Replies: 1,112
Views: 140,775
Posted By [RP]Rav
Re: Script Request Thread

you forgot

GivePlayerMoney(playerid,-500)
Forum: Help Archive 19/03/2009, 08:34 AM
Replies: 6
Views: 1,797
Posted By [RP]Rav
Re: Ip Log & Radar

this isn't the script request thread you know.. I'd make it something like this


new flagged[][] =
{
{ "123.123.123.123" },
{ "456.456.465.456" },
{ "789.789.789.789" }
};
Forum: Help Archive 18/03/2009, 12:02 PM
Replies: 5
Views: 1,924
Posted By [RP]Rav
Re: Need some help with this formula to calculate kill death ratio

remember that if you keep it that line the script may crash if it tries to divide by 0...
Forum: Help Archive 18/03/2009, 08:09 AM
Replies: 2
Views: 949
Posted By [RP]Rav
Re: What is wrong with this?

format(myString, sizeof(myString), "%s (%i) kisses the air!", ReturnPlayerName(playerid), playerid);

format(myString, sizeof(myString), "%s (%i) gives %s (%i) a kiss!", ReturnPlayerName(playerid),...
Forum: Scripting Help 18/03/2009, 08:01 AM
Replies: 4,133
Views: 616,021
Posted By [RP]Rav
Re: Little coding questions - For general minor queries 5

strreplace(&string[], strsub[], strrep[])
{
new idx = strfind(string, strsub, false);
if (idx == -1)
return -1;

strdel(string, idx, idx+strlen(strsub));
...
Forum: Help Archive 18/03/2009, 07:56 AM
Replies: 5
Views: 1,924
Posted By [RP]Rav
Re: Need some help with this formula to calculate kill death ratio

new Float: ratio;
if (kills[killerid] > 0 && deaths[killerid] > 0)
ratio = kills[killerid] / deaths[killerid];
else
ratio = 0;

then use the variable to save it, it looks much cleaner
Forum: Help Archive 17/03/2009, 08:28 PM
Replies: 2
Views: 1,296
Posted By [RP]Rav
Re: strfind

strfind returns the starting characters position of the substring found in string, strings start at bit 0,

Hello is
0 --> H
1 --> E
2 --> L
3 --> L
4 --> O

when you try to find "ll" in...
Showing results 1 to 25 of 262

 

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


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