SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/01/2020, 11:01 AM   #1
TheMaxo
Little Clucker
 
TheMaxo's Avatar
 
Join Date: Oct 2018
Location: Italy
Posts: 22
Reputation: 0
Unhappy HELP PLEASE

Hello.
I'm having this problem. Please help :/
(i can send the gamemode with includes if u can fix it)


Code:
D:\Files\3Run4Ever Server Official\3RunEByMe.pwn(43) : error 001: expected token: ")", but found "<"
D:\Files\3Run4Ever Server Official\3RunEByMe.pwn(43) : error 085: no states are defined for symbol "FormatMessage"
D:\Files\3Run4Ever Server Official\3RunEByMe.pwn(43) : error 029: invalid expression, assumed zero
D:\Files\3Run4Ever Server Official\3RunEByMe.pwn(43) : fatal error 107: too many error messages on one line
This is the line (43)
Code:
stock FormatMessage(i, color, msg[], va_args<>)

Last edited by TheMaxo; 12/01/2020 at 01:31 PM.
TheMaxo is offline   Reply With Quote
Old 12/01/2020, 01:03 PM   #2
TheMaxo
Little Clucker
 
TheMaxo's Avatar
 
Join Date: Oct 2018
Location: Italy
Posts: 22
Reputation: 0
Default Re: HELP Progress

up, please.
TheMaxo is offline   Reply With Quote
Old 12/01/2020, 01:19 PM   #3
Vizi10
Huge Clucker
 
Join Date: May 2017
Location: Iran
Posts: 312
Reputation: 8
Default Re: HELP Progress

Use this for send format message or send your function..
pawn Code:
new fstring[128];
#define SendFormatMessage(%0,%1,%2,%3) format(fstring, sizeof(fstring),%2,%3) && SendClientMessage(%0, %1, fstring)
#define SendFormatMessageToAll(%1,%2,%3) format(fstring, sizeof(fstring),%2,%3) && SendClientMessageToAll(%1, fstring)
Vizi10 is offline   Reply With Quote
Old 12/01/2020, 01:22 PM   #4
TheMaxo
Little Clucker
 
TheMaxo's Avatar
 
Join Date: Oct 2018
Location: Italy
Posts: 22
Reputation: 0
Default Re: HELP Progress

Now it's giving me this:

Code:
D:\Files\3Run4Ever Server Official\3RunEByMe.pwn(47) : error 001: expected token: ")", but found "<"
D:\Files\3Run4Ever Server Official\3RunEByMe.pwn(47) : error 085: no states are defined for symbol "LangFormatMessage"
D:\Files\3Run4Ever Server Official\3RunEByMe.pwn(47) : error 029: invalid expression, assumed zero
D:\Files\3Run4Ever Server Official\3RunEByMe.pwn(47) : fatal error 107: too many error messages on one line
STRING 47 TO 57:

Code:
stock LangFormatMessage(playerid, lang1[], lang2[], va_args<>)
{
   return SendLangMessage(playerid, -1, va_return(lang1, va_start<3>), va_return(lang2, va_start<3>));
}

stock strcatex(string[], formatt[], va_args<>)
{
   new str[180];
   va_format(str, sizeof(str), formatt, va_start<2>);
   return strcat(string, str, sizeof(str));
}
TheMaxo is offline   Reply With Quote
Old 12/01/2020, 01:33 PM   #5
Vizi10
Huge Clucker
 
Join Date: May 2017
Location: Iran
Posts: 312
Reputation: 8
Default Re: HELP Progress

Add to top
#include <YSI/y_va>
Vizi10 is offline   Reply With Quote
Old 12/01/2020, 02:13 PM   #6
TheMaxo
Little Clucker
 
TheMaxo's Avatar
 
Join Date: Oct 2018
Location: Italy
Posts: 22
Reputation: 0
Default Re: HELP Progress

Now it's giving me:

Code:
D:\Files\3Run4Ever Server Official\3RunEByMe.pwn(50) : error 017: undefined symbol "va_return"
D:\Files\3Run4Ever Server Official\3RunEByMe.pwn(1464) : error 017: undefined symbol "foreach"
D:\Files\3Run4Ever Server Official\3RunEByMe.pwn(1464) : error 029: invalid expression, assumed zero
D:\Files\3Run4Ever Server Official\3RunEByMe.pwn(1464) : error 017: undefined symbol "Player"
D:\Files\3Run4Ever Server Official\3RunEByMe.pwn(1464) : fatal error 107: too many error messages on one line
TheMaxo is offline   Reply With Quote
Old 12/01/2020, 02:15 PM   #7
Radless
Little Clucker
 
Join Date: Jul 2019
Posts: 40
Reputation: 3
Default Re: HELP Progress

Can you give Discord name?
Radless is offline   Reply With Quote
Old 12/01/2020, 02:19 PM   #8
TheMaxo
Little Clucker
 
TheMaxo's Avatar
 
Join Date: Oct 2018
Location: Italy
Posts: 22
Reputation: 0
Default Re: HELP Progress

Radless, is: bingo#9735
TheMaxo 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
Progress bar? [+REP] Lirbo Scripting Help 8 28/06/2016 08:25 AM
Progress bar. budelis Scripting Help 1 04/12/2012 09:16 PM
Progress bar help Zachlive Scripting Help 2 07/10/2012 06:09 PM
Progress Bar gabitzu4ever Scripting Help 0 29/09/2012 09:39 AM
a lil help with progress bar. XtremeR Scripting Help 8 02/09/2012 07:48 AM


All times are GMT. The time now is 11:03 AM.


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