Moving Objects (Rep++)
#1

I want this Object:
pawn Code:
CreateDynamicObject(10771,3302.39990234,-830.20001221,-1.79999995,0.00000000,0.00000000,270.00000000);
To Move to This Location: 3320.00, -2465.59, 23.01
i want it to move Smoothly on 30KPH
Also Before It Moves I want it To send a Message to All Players Saying:
Los Sontos Ferry News: The Ferry Is Moving To Dream Land Now! in 00FF00 Color
PS: IF u Do i Help me I Will Post Save ur Name And Put it in Credits When i Release it
Reply
#2

SendClientMessageToAll
MoveDynamicObject
Reply
#3

pawn Code:
CreateDynamicObject(10771,3302.39990234,-830.20001221,-1.79999995,0.00000000,0.00000000,270.00000000);
to
pawn Code:
// On top of your script
new Object;
// Now replace that code, with this one
Object = CreateDynamicObject(10771,3302.39990234,-830.20001221,-1.79999995,0.00000000,0.00000000,270.00000000);
// Now place this where you want the object to be moved.
MoveDynamicObject(Object, X, Y, Z, 1); // 1 = Speed, change it to your likings.
SendClientMessageToAll(00FF00, "Los Sontos Ferry News: The Ferry Is Moving To Dream Land Now!");
https://sampwiki.blast.hk/wiki/Function:...ntMessageToAll
Reply
#4

Look
pawn Code:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
new Object;
Object = CreateDynamicObject(10771,3302.39990234,-830.20001221,-1.79999995,0.00000000,0.00000000,270.00000000);
MoveDynamicObject(Object,3320.00,-2465.59,23.01, 1);
SendClientMessageToAll(00FF00, "Los Sontos Ferry News: The Ferry Is Moving To Dream Land Now!");
#defined FILTERSCRIPT

public OnFilterScriptInit()

    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");


    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}
i got Error
pawn Code:
C:\Users\Daoud\Desktop\Trucking Life\filterscripts\Ferry.pwn(7) : error 010: invalid function or declaration
C:\Users\Daoud\Desktop\Trucking Life\filterscripts\Ferry.pwn(8) : error 010: invalid function or declaration
C:\Users\Daoud\Desktop\Trucking Life\filterscripts\Ferry.pwn(15) : error 021: symbol already defined: "print"
C:\Users\Daoud\Desktop\Trucking Life\filterscripts\Ferry.pwn(19) : error 010: invalid function or declaration
C:\Users\Daoud\Desktop\Trucking Life\filterscripts\Ferry.pwn(28) : warning 203: symbol is never used: "MoveDynamicObject"
C:\Users\Daoud\Desktop\Trucking Life\filterscripts\Ferry.pwn(28) : warning 203: symbol is never used: "Object"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply
#5

Did you even read the comments? Read them for crying out lout. They are there for a reason!
Reply
#6

PHP Code:
OnFilterScriptInit//=Filterscript
OnGameModeInit//=gamemode 
Reply
#7

Try To Solve With Return 1 And }
Reply
#8

Quote:
Originally Posted by [LB]BlAcK_DeViL
View Post
Try To Solve With Return 1 And }
Really? If that is all your scripting knowledge, then please for the love of god don't post.

All his code is in one place but has to be 'scattered' around the filterscript or gamemode. Sandiel posted a perfect piece of code with comments and the OP didn't even bother to look at the comments so he could put them in the right sections.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)