I need help in this errors!
#1

Hello, I compiled my script and I got this errors, help please.

Код:
D:\SGRP\gamemodes\SGRP.pwn(912) : error 009: invalid array size (negative, zero or out of bounds)
D:\SGRP\gamemodes\SGRP.pwn(916) : error 010: invalid function or declaration
D:\SGRP\gamemodes\SGRP.pwn(21370) : error 017: undefined symbol "weburl"
D:\SGRP\gamemodes\SGRP.pwn(21376) : error 017: undefined symbol "server_locked"
D:\SGRP\gamemodes\SGRP.pwn(21385) : error 017: undefined symbol "rconpass"
D:\SGRP\gamemodes\SGRP.pwn(21406) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\SGRP\gamemodes\SGRP.pwn(21430) : warning 224: indeterminate array size in "sizeof" expression (symbol "")
D:\SGRP\gamemodes\SGRP.pwn(21446) : error 017: undefined symbol "weburl"
D:\SGRP\gamemodes\SGRP.pwn(21454) : error 017: undefined symbol "weburl"
D:\SGRP\gamemodes\SGRP.pwn(21454) : error 017: undefined symbol "weburl"
D:\SGRP\gamemodes\SGRP.pwn(21454) : error 029: invalid expression, assumed zero
D:\SGRP\gamemodes\SGRP.pwn(21454) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Errors.
Line 912

Код:
hostname[Static Gaming Roleplay],
Line 916

Код:
bool:server_locked;
Line 21370

Код:
format(string, sizeof(string), "Current URL: %s\n\nEnter the new URL below.", weburl);
Line 21376

Код:
switch(server_locked)
Line 21385

Код:
format(string, sizeof(string), "Current RCON Pass: %s\n\nEnter the new RCON Pass below.", rconpass);
Line 21406

Код:
format(hostname, sizeof(hostname), inputtext);
Line 21430

Код:
format(mapname, sizeof(mapname), inputtext);
Line 21446

Код:
format(string, sizeof(string), "Current URL: %s\n\nEnter the new URL below.", weburl);
Line 21454

Код:
format(weburl, sizeof(weburl), inputtext);
Reply
#2

You need to learn scripting initials
pawn Код:
#define hostname Static Gaming Roleplay



new bool:server_locked;
format(string, sizeof(string), "Current URL: %s\n\nEnter the new URL below.", hostname);
new server_locked[MAX_PLAYERS]; // put it below your defines
switch(server_locked)
{
 case 1:
 {
   // do something
  }
#define rconpass "123456465" // password
format(string, sizeof(string), "Current RCON Pass: %s\n\nEnter the new RCON Pass below.", rconpass);
}
new str[150];
format(str, sizeof(str), inputtext);
format(str, sizeof(str), inputtext);
format(string, sizeof(string), "Current URL: %s\n\nEnter the new URL below.", hostname);

format(str, sizeof(str), inputtext);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)