SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 06/08/2015, 07:24 PM   #1
Andy5
Big Clucker
 
Andy5's Avatar
 
Join Date: Mar 2015
Location: -
Posts: 53
Reputation: 0
Exclamation [Help] Actors

i was trying to make some actors But i got Warnings Can Someone Help me fix it !!

Warnings

Code:
C:\Users\ma\Desktop\C.pwn(497) : warning 204: symbol is assigned a value that is never used: "actorlslv"
C:\Users\ma\Desktop\C.pwn(496) : warning 204: symbol is assigned a value that is never used: "actorlvls"
C:\Users\ma\Desktop\C.pwn(499) : warning 204: symbol is assigned a value that is never used: "actorlvsf"
C:\Users\ma\Desktop\C.pwn(499) : warning 204: symbol is assigned a value that is never used: "actorsflv"

My Codes

Code:
new actorlvls;
new actorlslv;
new actorlvsf;
new actorsflv;
Code:
	actorlvls = CreateActor(71, 1736.7992,525.3386,27.8221,340.5263);
	actorlslv = CreateActor(71, 1742.3065,524.8246,27.7558,162.7836);
	actorsflv = CreateActor(71, -1144.4471,1091.2239,38.9676,133.3534);
	actorlvsf = CreateActor(71, -1138.0997,1106.3149,38.2867,313.8756);

Can Someone Help Me Please !!
Andy5 is offline   Reply With Quote
Old 06/08/2015, 07:32 PM   #2
Kaliber
High-roller
 
Kaliber's Avatar
 
Join Date: Jun 2012
Location: Localhost
Posts: 1,092
Reputation: 156
Default AW: [Help] Actors

Write it like this:

PHP Code:
new stock actorlvls,actorlslv,actorlvsf,actorsflv
__________________
Kaliber is offline   Reply With Quote
Old 06/08/2015, 07:35 PM   #3
Moudix
Big Clucker
 
Moudix's Avatar
 
Join Date: Jun 2014
Location: Beirut, Lebanon
Posts: 108
Reputation: 8
Default Re: [Help] Actors

You are defining the actors for nothing.
Defining them like :
PHP Code:
new actorlvls
Is only if you need to delete that actor / or do anything with him later. But you're just adding the actors so delete the defines (new actorlslv; etc) and the actorlvsf = before every CreateActor
__________________
Moudix is offline   Reply With Quote
Old 06/08/2015, 07:37 PM   #4
Andy5
Big Clucker
 
Andy5's Avatar
 
Join Date: Mar 2015
Location: -
Posts: 53
Reputation: 0
Default Re: AW: [Help] Actors

Quote:
Originally Posted by Kaliber View Post
Write it like this:

PHP Code:
new stock actorlvls,actorlslv,actorlvsf,actorsflv
Thanks Fixed <3 +Rep
Andy5 is offline   Reply With Quote
Old 06/08/2015, 09:55 PM   #5
cnoopers
Huge Clucker
 
Join Date: Aug 2013
Posts: 425
Reputation: 7
Default Re: [Help] Actors

u dont need to define it when u dont apply any animation or anything instead of creating actor.
cnoopers is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do actors lag? Metharon Scripting Help 3 17/05/2015 10:28 AM
Help Me ! (Actors) TheKeviXz Scripting Help 2 17/05/2015 02:31 AM
Actors. norton2 Scripting Help 4 14/05/2015 10:46 PM
Actors norton2 Scripting Help 2 09/05/2015 02:42 PM


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


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