1 Error - 1 Warring :
#1

Help to To Fix this Shit lol

Код:
(264) : error 010: invalid function or declaration
I already make a zones but dont know Why there is a bug Help me ..
PHP код:
new Zones;
   
"Zone 1"1861, -1253.52063, -1153.50xFF0000FF },
   
"Zone 1"2080, -1252.52156, -1193.50xFF0000FF },
   
"Zone 3"2331, -1728.52572, -1625.50xFF0000FF },
   
"Zone 4"1433, -1729.51588, -1602.50xFF0000FF },
   
"Zone 5"1944, -1748.52097, -1614.50xFF0000FF }, 
And help me to fix this warring

PHP код:
warning 203symbol is never used"Zones" 
Reply
#2

help me!!!
Reply
#3

I didn't really understand what this define supposed to do, But maybe you wanted something like this?

PHP код:
new Zones[][]=
{
   
"Zone 1"1861, -1253.52063, -1153.50xFF0000FF }, 
   
"Zone 1"2080, -1252.52156, -1193.50xFF0000FF }, 
   
"Zone 3"2331, -1728.52572, -1625.50xFF0000FF }, 
   
"Zone 4"1433, -1729.51588, -1602.50xFF0000FF }, 
   
"Zone 5"1944, -1748.52097, -1614.50xFF0000FF }

Reply
#4

Код:
(260) : error 020: invalid symbol name ""
line 260
PHP код:
   "Zone 2"2080, -1252.52156, -1193.50xFF0000FF }, 
Reply
#5

Use a enum, because you are using Float + Integer + String.
Reply
#6

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
Use a enum, because you are using Float + Integer + String.
Good Good now wwhat happend here

i thing the enum is worked yes but i dont know how to use it ? did it right ?

Код:
(260) : error 001: expected token: "-identifier-", but found "{"
PHP код:
enum Zones
{
   {
1861, -1253.52063, -1153.50xFF0000FF },
   {
2080, -1252.52156, -1193.50xFF0000FF },
   {
2331, -1728.52572, -1625.50xFF0000FF },
   {
1433, -1729.51588, -1602.50xFF0000FF },
   {
1944, -1748.52097, -1614.50xFF0000FF }

Reply
#7

try this

PHP код:
enum zoneSpawns
{
    
zSpawn_Name[256],
    
Float:zSpawn_X,
    
Float:zSpawn_Y,
    
Float:zSpawn_Z,
    
Float:zSpawn_A,
    
zColor[12]
};

new 
Float:Zones[][zoneSpawns] =
{
   { 
"Zone 1"1861, -1253.52063, -1153.50xFF0000FF },
   { 
"Zone 2"2080, -1252.52156, -1193.50xFF0000FF },
   { 
"Zone 3"2331, -1728.52572, -1625.50xFF0000FF },
   { 
"Zone 4"1433, -1729.51588, -1602.50xFF0000FF },
   { 
"Zone 5"1944, -1748.52097, -1614.50xFF0000FF }
}; 
Reply
#8

Quote:
Originally Posted by Slawiii
Посмотреть сообщение
try this

PHP код:
enum zoneSpawns
{
    
zSpawn_Name[256],
    
Float:zSpawn_X,
    
Float:zSpawn_Y,
    
Float:zSpawn_Z,
    
Float:zSpawn_A,
    
zColor[12]
};
new 
Float:Zones[][zoneSpawns] =
{
   { 
"Zone 1"1861, -1253.52063, -1153.50xFF0000FF },
   { 
"Zone 2"2080, -1252.52156, -1193.50xFF0000FF },
   { 
"Zone 3"2331, -1728.52572, -1625.50xFF0000FF },
   { 
"Zone 4"1433, -1729.51588, -1602.50xFF0000FF },
   { 
"Zone 5"1944, -1748.52097, -1614.50xFF0000FF }
}; 
+rep but help me for this warring
Код:
warning 203: symbol is never used: "Zones"
Reply
#9

You need to use it.
Reply
#10

Do you actually read the errors/warnings?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)