SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 136
Search took 0.00 seconds.
Search: Posts Made By: Sasoft
Forum: Scripting Help 06/07/2013, 10:15 AM
Replies: 1
Views: 606
Posted By Sasoft
Re: Random item.

new variable = 1 + random(1);

switch(variable)
{
case 1:
{
// Random 1
}
case 2:
{
Forum: Scripting Help 06/07/2013, 09:46 AM
Replies: 1
Views: 457
Posted By Sasoft
Input line too long (after substitutions)

D:\Dropbox\Dropbox\\gamemodes\P-RP2.pwn(2769) : error 075: input line too long (after substitutions)
D:\Dropbox\Dropbox\\gamemodes\P-RP2.pwn(2770) : error 037: invalid string (possibly...
Forum: Scripting Help 04/07/2013, 01:25 PM
Replies: 2
Views: 747
Posted By Sasoft
Forum: Scripting Help 04/07/2013, 01:12 PM
Replies: 2
Views: 747
Posted By Sasoft
3DTextLabel doesn't show up.

Not sure what's wrong, the dynamic pickup spawns correctly though.


enum bizInfo
{
Type,
Price,
Lock,
Pickup,
Money,
Forum: Scripting Help 27/06/2013, 09:03 AM
Replies: 2
Views: 837
Posted By Sasoft
Re: OnPlayerEnterCheckpoint

I've found the problem, it's if(IsPlayerInAnyVehicle(veh))
It should be if(IsPlayerInAnyVehicle(playerid))

But thanks for looking into it anyway!
Forum: Scripting Help 27/06/2013, 08:56 AM
Replies: 2
Views: 837
Posted By Sasoft
OnPlayerEnterCheckpoint

Problem solved:

if(IsPlayerInAnyVehicle(veh))
It should be if(IsPlayerInAnyVehicle(playerid))




I can't get it to work, it doesn't give any errors or warnings. Everytime I enter the...
Forum: Scripting Help 25/06/2013, 09:30 AM
Replies: 10
Views: 887
Posted By Sasoft
Re: SetPlayerPos doesn't work anymore

Have you tried to execute the command without the if statement?
Forum: Scripting Help 25/06/2013, 09:23 AM
Replies: 10
Views: 887
Posted By Sasoft
Re: SetPlayerPos doesn't work anymore

Try this ingame, I'm sure it doesn't work because you're either not an admin or a helper.

CMD:gotopd(playerid, params[])
{
if(PlayerInfo[playerid][Admin] > 0 || PlayerInfo[playerid][Helper] >...
Forum: Scripting Help 24/06/2013, 02:22 PM
Replies: 8
Views: 598
Posted By Sasoft
Re: login system failure

What's on line 162?
Forum: Gamemode Scripts 24/06/2013, 02:15 PM
Replies: 92
Views: 42,131
Posted By Sasoft
Re: Riverwood Roleplay [NEW]

That's because there aren't any vehicles.
Forum: Gamemode Scripts 24/06/2013, 11:52 AM
Replies: 92
Views: 42,131
Posted By Sasoft
Re: Riverwood Roleplay [NEW]

I have returned to SA-MP, I've updated the script to the latest client version.
Forum: Scripting Help 20/06/2013, 02:00 PM
Replies: 8
Views: 879
Posted By Sasoft
Re: Different parameters in one command

Could you give me an example please?
Forum: Scripting Help 20/06/2013, 01:55 PM
Replies: 8
Views: 879
Posted By Sasoft
Re: Different parameters in one command

COMMAND:give(playerid, params[])
{
new string[128], target, amount;
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "SERVER: You need to login first before using...
Forum: Scripting Help 20/06/2013, 12:51 PM
Replies: 8
Views: 879
Posted By Sasoft
Re: Different parameters in one command

Yea, I was thinking of that before, but I just want it to give the gun which the character is holding at the moment.
Forum: Scripting Help 20/06/2013, 12:27 PM
Replies: 8
Views: 879
Posted By Sasoft
Different parameters in one command

I am kind of stuck at the moment, I'm trying to make a command where you can give your weapon or drugs to another player. I have covered the weapon part but now I have to make the drug part. Which...
Forum: Scripting Help 13/02/2013, 05:50 PM
Replies: 1
Views: 668
Posted By Sasoft
Spawn point changes when I log in.

It spawns my character at the standard Las Venturas spawn point instead of my saved coordinates when I log out.
Can someone tell me how to fix this problem?

forward LoadUser_files(playerid,...
Forum: Scripting Help 11/02/2013, 03:56 PM
Replies: 2
Views: 601
Posted By Sasoft
Re: error 010: invalid function or declaration

Damn, can't believe I didn't see that. Thank you sir!
Forum: Scripting Help 11/02/2013, 03:49 PM
Replies: 2
Views: 601
Posted By Sasoft
error 010: invalid function or declaration

Having some problems here, can anyone help me?


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case REG_DIALOG:
{
...
Forum: Scripting Help 11/02/2013, 06:55 AM
Replies: 9
Views: 1,310
Posted By Sasoft
Re: Multiplying to a Decimal Number

I guess you could try this

new double SellPrice;
Forum: Client Support 10/02/2013, 12:12 PM
Replies: 0
Views: 1,247
Posted By Sasoft
Server Crash 0x772422B2 Module: (ntdll.dll)

My server basically crashes whenever I use sscanf. It never crashed on 0.3e, but since I've upgraded it to 0.3x it crashes every time. I've tried updating my sscanf plugins and compiled my script...
Forum: Scripting Help 09/02/2013, 05:11 PM
Replies: 14
Views: 1,486
Posted By Sasoft
Re: need help urgent for my server.

You must edit your CountDownRobbery timers to the correct format.
(time) (playerid)
SetTimerEx("CountDownRobbery", 1000, playerid, false, "i", --time);
Forum: Scripting Help 09/02/2013, 05:02 PM
Replies: 14
Views: 1,486
Posted By Sasoft
Re: need help urgent for my server.

Try this

forward CountDownRobbery(time, playerid);
public CountDownRobbery(time, playerid) {
if(time < 1) {
GameTextForPlayer(playerid, "~r~Robbery complete", 2500, 1);
} else...
Forum: Scripting Help 08/02/2013, 02:48 PM
Replies: 3
Views: 561
Posted By Sasoft
Re: CMD help

Try this:
CMD:doc(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, 293.675415, 188.238296,...
Forum: Scripting Help 08/10/2012, 08:13 AM
Replies: 1
Views: 534
Posted By Sasoft
Forum: Scripting Help 06/10/2012, 09:27 PM
Replies: 1
Views: 534
Posted By Sasoft
Doesen't execute

Everything works but the "name" function doesen't, it doesen't even give me a message.
COMMAND:editorg(playerid, params[]){
new X, option[32];
if(P_DATA[playerid][Admin] < 3) return S(playerid,...
Showing results 1 to 25 of 136

 

All times are GMT. The time now is 09:28 AM.


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