SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 28/03/2014, 11:45 AM   #1
Jenson[ST]
Little Clucker
 
Join Date: Jul 2012
Posts: 23
Reputation: 3
Default HELP ! sscanf2 problem

Hey Guys i am having some problem in compiling a script can you help me out

Code:
C:\Users\User\Videos\Entertainment\Aviation\AviationLife\gamemodes\AL.pwn(686) : error 021: symbol already defined: "unformat"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
Jenson[ST] is offline   Reply With Quote
Old 28/03/2014, 11:56 AM   #2
Equuuuin0X
Huge Clucker
 
Join Date: Jan 2014
Location: Indonesia
Posts: 341
Reputation: 16
Default Re: HELP ! sscanf2 problem

CTRL+ F, search for unformat, delete one ''unformat''.

There should be two unformat there that causes the error.

cus you define the unformat twice
__________________

a.k.a Flaken


Equuuuin0X is offline   Reply With Quote
Old 28/03/2014, 11:58 AM   #3
Jenson[ST]
Little Clucker
 
Join Date: Jul 2012
Posts: 23
Reputation: 3
Default Re: HELP ! sscanf2 problem

there is only one Unformat
Jenson[ST] is offline   Reply With Quote
Old 28/03/2014, 12:00 PM   #4
Equuuuin0X
Huge Clucker
 
Join Date: Jan 2014
Location: Indonesia
Posts: 341
Reputation: 16
Default Re: HELP ! sscanf2 problem

Maybe the other ''unformat'' is on an include, try to delete your ''unformat'' on your script.
__________________

a.k.a Flaken


Equuuuin0X is offline   Reply With Quote
Old 28/03/2014, 12:09 PM   #5
Jenson[ST]
Little Clucker
 
Join Date: Jul 2012
Posts: 23
Reputation: 3
Default Re: HELP ! sscanf2 problem

yes unformat is on sscanf2.inc include
Jenson[ST] is offline   Reply With Quote
Old 28/03/2014, 12:19 PM   #6
Bingo
High-roller
 
Bingo's Avatar
 
Join Date: Jul 2012
Location: United Arab Emirates.
Posts: 1,689
Reputation: 235
Default Re: HELP ! sscanf2 problem

Show us line 686.

Press CTRL + G and type line number.
Bingo is offline   Reply With Quote
Old 28/03/2014, 12:19 PM   #7
Equuuuin0X
Huge Clucker
 
Join Date: Jan 2014
Location: Indonesia
Posts: 341
Reputation: 16
Default Re: HELP ! sscanf2 problem

Delete ''unformat'' on your script(the GAMEMODE).
__________________

a.k.a Flaken


Equuuuin0X is offline   Reply With Quote
Old 28/03/2014, 12:26 PM   #8
Jenson[ST]
Little Clucker
 
Join Date: Jul 2012
Posts: 23
Reputation: 3
Default Re: HELP ! sscanf2 problem

To Equuuuin0X:
I will see that
EDIT: I saw that and i still got more errors than that
Code:
C:\Users\Arun\Desktop\Life of Flying 0.3x\gamemodes\LoF (edited).pwn(686) : error 010: invalid function or declaration
C:\Users\Arun\Desktop\Life of Flying 0.3x\gamemodes\LoF (edited).pwn(686) : error 001: expected token: "=", but found "["
C:\Users\Arun\Desktop\Life of Flying 0.3x\gamemodes\LoF (edited).pwn(3717) : warning 219: local variable "data" shadows a variable at a preceding level
C:\Users\Arun\Desktop\Life of Flying 0.3x\gamemodes\LoF (edited).pwn(3720) : error 028: invalid subscript (not an array or too many subscripts): "data"
C:\Users\Arun\Desktop\Life of Flying 0.3x\gamemodes\LoF (edited).pwn(3720) : warning 215: expression has no effect
C:\Users\Arun\Desktop\Life of Flying 0.3x\gamemodes\LoF (edited).pwn(3720) : error 001: expected token: ";", but found "]"
C:\Users\Arun\Desktop\Life of Flying 0.3x\gamemodes\LoF (edited).pwn(3720) : error 029: invalid expression, assumed zero
C:\Users\Arun\Desktop\Life of Flying 0.3x\gamemodes\LoF (edited).pwn(3720) : fatal error 107: too many error messages on one line
To [vTc]Patroool:
Here's the line:
Code:
native unformat(const data[], const format[], {Float,_}:...) = sscanf;
Jenson[ST] is offline   Reply With Quote
Old 28/03/2014, 12:28 PM   #9
Bingo
High-roller
 
Bingo's Avatar
 
Join Date: Jul 2012
Location: United Arab Emirates.
Posts: 1,689
Reputation: 235
Default Re: HELP ! sscanf2 problem

At starting of this line do this //
Bingo is offline   Reply With Quote
Old 28/03/2014, 12:57 PM   #10
Jenson[ST]
Little Clucker
 
Join Date: Jul 2012
Posts: 23
Reputation: 3
Default Re: HELP ! sscanf2 problem

THANK YOU VERY MUCH [VTC]Patrool
Sorry for the caps :P
Jenson[ST] 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
Problem using Sscanf2 ServerScripter Scripting Help 5 12/03/2012 11:14 PM
sscanf2 problem. vent Scripting Help 2 12/01/2012 12:09 PM
sscanf2 problem park4bmx Scripting Help 10 19/11/2011 07:42 PM
sscanf2 problem? Mike Garber Help Archive 4 05/03/2011 03:12 PM
sscanf2 problem Marricio Help Archive 7 17/01/2011 09:27 PM


All times are GMT. The time now is 01:19 AM.


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