SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 301
Search took 0.01 seconds.
Search: Posts Made By: Nonameman
Forum: Filterscripts 05/01/2013, 12:07 AM
Replies: 11
Views: 4,171
Posted By Nonameman
Forum: Scripting Help 04/01/2013, 05:48 PM
Replies: 6
Views: 995
Posted By Nonameman
Forum: Scripting Help 04/01/2013, 01:59 PM
Replies: 6
Views: 995
Posted By Nonameman
Re: Rotating an attached object

There's no problem with my rotation calculator algorithm, checked it many times, the angle is correct, the attaching is the problem.
Forum: Scripting Help 04/01/2013, 01:51 PM
Replies: 6
Views: 995
Posted By Nonameman
Re: Rotating an attached object

Yes, he do it like me, re-attaching the object, dunno why it doesn't work in my script.


forward CalculateGPSRotation();
public CalculateGPSRotation()
{
new Float:ang = -1;

for (new i =...
Forum: Scripting Help 04/01/2013, 01:42 PM
Replies: 6
Views: 995
Posted By Nonameman
Rotating an attached object

Hey,

I'm working on a GPS script, it's nearly finished, but I had to stop working on it beacuse of an annoying problem:

My base idea is when a player uses the /gps cmd in a vehicle, it creates...
Forum: Scripting Help 24/02/2012, 02:56 PM
Replies: 4
Views: 796
Posted By Nonameman
Re: Help Please

public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid) {
if (GetPlayerTeam(playerid) == GetPlayerTeam(damagedid)) {
new Float:damagedHealth;
GetPlayerHealth(damagedid,...
Forum: Scripting Help 19/02/2012, 06:36 PM
Replies: 2
Views: 627
Posted By Nonameman
Re: Positioning racers

Ohh and I forgot to say that the columns need to be aligned with the first two checkpoint's line, not just with the first. :/

EDIT: Any other suggestions about placing racers would help me...
Forum: Scripting Help 19/02/2012, 05:26 PM
Replies: 2
Views: 627
Posted By Nonameman
Positioning racers

Hey!

I'm working on a race filterscript, but I don't know how to place the players.
I'd place them in two columns, facing the first checkpoint, like:

(col 1) -> -> -> -> -> -> ...
Forum: Scripting Help 19/02/2012, 12:00 PM
Replies: 6
Views: 2,128
Posted By Nonameman
Re: Team Chat

Idk why I used SendPlayerMessageToPlayer(), thanks for fixing it. :)
Forum: Tutorials 19/02/2012, 12:17 AM
Replies: 40
Views: 45,670
Posted By Nonameman
Re: Enumerators (enums). What they actually are?

Thanks a lot, you learnt me many things I have not known before. :)
Forum: Scripting Help 18/02/2012, 11:11 PM
Replies: 6
Views: 2,128
Posted By Nonameman
Re: Team Chat

I hope it will be useful for you:

public OnPlayerText(playerid, text[])
{
if (text[0] == '@') {
text[0] = ' ';
new msg[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,...
Forum: Scripting Help 18/02/2012, 04:05 PM
Replies: 16
Views: 2,240
Posted By Nonameman
Re: 3 Error after DIALOG_STYLE_PASSWORD

My fault, sorry. Last time I saw this wiki page, there was only 3 types. :)
Forum: Scripting Help 18/02/2012, 03:28 PM
Replies: 16
Views: 2,240
Posted By Nonameman
Forum: Scripting Help 18/02/2012, 03:21 PM
Replies: 16
Views: 2,240
Posted By Nonameman
Re: 3 Error after DIALOG_STYLE_PASSWORD

Because it's DIALOG_STYLE_INPUT. :)
Forum: Scripting Help 18/02/2012, 03:12 PM
Replies: 5
Views: 2,667
Posted By Nonameman
Re: Mysql error.

mysql_connect(MySQL_HOST, MySQL_USER, MySQL_DATA, MySQL_PASS);
if(mysql_ping() == 1) {
mysql_debug(1);
} else {
SendRconCommand( "exit" );
}
Forum: Scripting Help 18/02/2012, 03:04 PM
Replies: 2
Views: 552
Posted By Nonameman
Re: Error

There's a return that exits your function and makes a part of your code unreachable, like:

public function() {
...code... // this can be reached
return 1;
...code... // this...
Forum: Scripting Help 18/02/2012, 01:48 PM
Replies: 1
Views: 617
Posted By Nonameman
Re: you are not near a vehicle,

I think the for cycle can't reach the vehicle's id you are searching for, because return stops it after finding a vehicle that's not in your range. Use continue instead of return.
Forum: Scripting Help 18/02/2012, 12:18 PM
Replies: 1
Views: 671
Posted By Nonameman
Re: Helmet problem

To remove attached object, you have to use the RemovePlayerAttachedObject() function, calling again SetPlayerAttachedObject() won't work. :)


if (strcmp(cmd, "/helmet", true) == 0) {
if...
Forum: Scripting Help 18/02/2012, 10:34 AM
Replies: 3
Views: 1,028
Posted By Nonameman
Re: TogglePlayerControllable Fix?

Idk, but try to fix it with SetPlayerCameraPos() and SetPlayerCameraLookAt().
Forum: Scripting Help 17/02/2012, 08:58 AM
Replies: 15
Views: 2,022
Posted By Nonameman
Re: please help

I'm glad to help you. :)
Forum: Scripting Help 17/02/2012, 08:41 AM
Replies: 37
Views: 5,357
Posted By Nonameman
Re: Pickups after Death!

It compiles successfully for me, you may deleted something when pasted the code into your script. :)
Forum: Scripting Help 17/02/2012, 07:07 AM
Replies: 5
Views: 750
Posted By Nonameman
Re: Login Tries

new buffer[512]; // declare it with bigger size than 196
WP_Hash(buffer, sizeof(buffer), inputtext);
if (strcmp(buffer, pass, false) == 0) // compare them this way
Forum: Scripting Help 16/02/2012, 08:59 PM
Replies: 37
Views: 5,357
Posted By Nonameman
Re: Pickups after Death!

Finished, I hope it will work correctly cuz I'm very tired. See you tomorrow.


#define MAX_DEATH_PICKUPS 100
new DeathPickups[MAX_DEATH_PICKUPS][10];

public OnPlayerDeath(playerid,...
Forum: Scripting Help 16/02/2012, 08:33 PM
Replies: 37
Views: 5,357
Posted By Nonameman
Re: Pickups after Death!

Try the id that @System64 wrote: 1239
Forum: Scripting Help 16/02/2012, 08:12 PM
Replies: 37
Views: 5,357
Posted By Nonameman
Re: Pickups after Death!

Then it's the wiki's fault :DDDD http://wiki.sa-mp.com/wiki/Pickup_IDs
Improving the scipt as you asked.
Showing results 1 to 25 of 301

 

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


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