SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 01/04/2017, 08:52 PM   #1
Face9000
Banned
 
Join Date: Jan 2010
Location: Pigland
Posts: 3,351
Reputation: 190
Default Error

I have this code to create in automatic the map icons for gas pumps:

pawn Code:
CreateDynamicMapIcon([pumpX], PumpData[i][pumpY], PumpData[i][pumpZ], 55, 0, 0, .streamdistance = 2000.0);

But when i compile, i get this:

Quote:
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
What's wrong? And how to make this icons visibile even if a player is faaaar away from the gas pumps?
Face9000 is offline   Reply With Quote
Old 01/04/2017, 09:17 PM   #2
J0sh...
Banned
 
Join Date: Aug 2014
Location: Hamburger
Posts: 1,277
Reputation: 461
Default Re: Error

CreateDynamicMapIcon([pumpX],
so do this
CreateDynamicMapIcon(PumpData[i][pumpX],

2:

Set stream distance to 3000
J0sh... is offline   Reply With Quote
Old 01/04/2017, 09:47 PM   #3
Face9000
Banned
 
Join Date: Jan 2010
Location: Pigland
Posts: 3,351
Reputation: 190
Default Re: Error

Thanks.
Face9000 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
error 017: undefined symbol,fatal error 107: too many error messages on one line Slicebook Scripting Help 11 04/05/2014 08:30 PM
fatal error 111: user error: sscanf (possibly the PAWN version) already defined? minijackc Scripting Help 2 15/01/2013 04:17 AM
An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds.... rati555 Scripting Help 1 14/09/2012 07:45 PM
Registered plate stock error 'error 076: syntax error in the expression, or invalid function call' Deal-or-die Scripting Help 2 25/06/2012 03:12 PM
I get tagmismatch error, But i cant find any error error Swiftz Help Archive 1 16/04/2011 04:31 AM


All times are GMT. The time now is 01:05 PM.


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