Raised This Month: $51 Target: $400
 12% 

help with edit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JuegosPablo
Veteran Member
Join Date: Feb 2016
Location: Gravity is a Harness
Old 08-05-2017 , 02:28   help with edit
Reply With Quote #1

i try to edit a plugin of tf2 gamemode (Freak Fortress 2 is the gamemode) but when try to compile show me 6 errors

Here A photo



Any can help me pls

Here the File
Attached Files
File Type: sp Get Plugin or Get Source (freak_fortress_2.sp - 20 views - 267.4 KB)
__________________
My Youtube Channel
Steam Profile
My Discord: JuegosPablo#0568
JuegosPablo is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 08-05-2017 , 04:25   Re: help with edit
Reply With Quote #2

For the PlayBGM function you need to specify the music as a string and the time as a float
Here is the function definition:
PHP Code:
PlayBGM(clientString:music[], Float:timebool:loop=truechar[] name=""char[] artist=""
Other error is because PlayBGMAt isn't defined, maybe you meant playBGM? Variable names need to be exact and are case sensitive, be careful when typing them.

Another note is you should learn to read what the compiler tells you. It gives you the line that causes the error as well as an error message to help you identify the problem.

e.g. Line 2932 number of arguments does not match definition means that the function is missing some arguments, in this case music and time

Line 2989 undefined symbol 'PlayBGMAt', means that PlayBGMAt isn't a variable
hmmmmm is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 00:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode