Errors in 3D Text Label - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Errors in 3D Text Label (
/showthread.php?tid=410939)
Errors in 3D Text Label -
Goldino - 27.01.2013
Hey getting these errors,
Код:
C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\CNRSER~1\GAMEMO~1\Testing.pwn(76) : error 001: expected token: ";", but found "new"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Here is the code!
Код:
new randomMessages[][] = //Random server messages
{
"Always remember to follow the servers rules otherwise it may result in a punishment", //First Random Message
"If you liked our server tell your friends about it", //Second Random Message
"Remember to add our server to your favourites. Our IP is ~Comming soon~", //Third Random Message
"Remember to visit our TeamSpeak 3 server. Our TS3 IP is ~Comming soon~", //Fourth Random Message
"Unsure of anything? Need help? Use /ask to ask a question to our online staff", //Fifth Random Message
"Spotted a hacker? /report in game them or report them on our forums", //Sixth Random Message
"Use /admins to see a list of our online staff", //Sevent Random Message
"Found a bug? Report it on our forums.",
"Use /cmds to view a list of working commands!",
"To see a list of latest updates, use /updates"
};
Please help!
Re: Errors in 3D Text Label -
Roach_ - 27.01.2013
What is above this array?
Give me that..
Re: Errors in 3D Text Label -
DaRk_RaiN - 27.01.2013
It gave me no errors, where's the error line you had?
Re: Errors in 3D Text Label -
Goldino - 27.01.2013
Line 76 is this:
Код:
new randomMessages[][] = //Random server messages
Here is the code above the thing I just showed you
Код:
/*******************************************************************************
* SERVER NAME: Los Santos Life Cops n Robbers
* SERVER VERSION: v1.0
* SERVER DEVELOPER: Goldkiller & JerryBean
*
* INFORMATION: Los Santos Life Cops n Robbers is a gamemodewhich was created
* on the 19.1.2013. This script contains lots of functions, commands, and
* admin commands.
*
* Copyright 2013. Do not steal this Gamemode, if your using it, leave the
* credits on.
*
* To do list:
*
*
*******************************************************************************/
//--[INCLUDES]--
#include <a_samp>
#include <zcmd>
#include <YSI\y_ini>
#include <sscanf>
//-----[FORWARDS]-----
forward loadaccount_user(playerid, name[], value[]);
//-----[NATIVES]-----
native WP_Hash(buffer[],len,const str[]);
//-----[ADMIN DEFINES]-----
#define dregister 2011
#define dlogin 2012
#define rules 2013
#define cmds 2014
#define acmds 2015
#define upd 2016
#define credits 2017
#define UserPath "Adm/Users/%s.ini"
//-----[COLOR DEFINES FOR ADMIN/REG SYSTEM]-----
#define COL_RULES "{FA0A36}"
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_LIGHTBLUE "{00CED1}"
//-----[ENUMS]-----
enum PlayerInfo
{
Pass[129], //User's password
Adminlevel, //User's admin level
VIPlevel, //User's vip level
Money, //User's money
Scores, //User's scores
Kills, //User's kills
Deaths //User's deaths
}
new pInfo[MAX_PLAYERS][PlayerInfo];
//-----[OTHER DEFINES]-----
//-----[FORWARDS]-----
forward RandomMessages();
//--[TEXTDRAWS]--
new Text:Startup0;
new Text:Startup1;
new Text:Startup2;
new Text:Startup3;
new Text:Startup4;
new Text:Startup5;
//--[3D TEXT]---
new Text3D:admin
new randomMessages[][] = //Random server messages
{
"Always remember to follow the servers rules otherwise it may result in a punishment", //First Random Message
"If you liked our server tell your friends about it", //Second Random Message
"Remember to add our server to your favourites. Our IP is ~Comming soon~", //Third Random Message
"Remember to visit our TeamSpeak 3 server. Our TS3 IP is ~Comming soon~", //Fourth Random Message
"Unsure of anything? Need help? Use /ask to ask a question to our online staff", //Fifth Random Message
"Spotted a hacker? /report in game them or report them on our forums", //Sixth Random Message
"Use /admins to see a list of our online staff", //Sevent Random Message
"Found a bug? Report it on our forums.",
"Use /cmds to view a list of working commands!",
"To see a list of latest updates, use /updates"
};
Re: Errors in 3D Text Label -
DaRk_RaiN - 27.01.2013
Re: Errors in 3D Text Label -
Roach_ - 27.01.2013
He forgot a ';' in the Array, or function above this..
Re: Errors in 3D Text Label -
Goldino - 27.01.2013
Lol thanks!