I need help in this errors! - 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: I need help in this errors! (
/showthread.php?tid=544373)
I need help in this errors! -
Stefan10 - 01.11.2014
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
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);
Re: I need help in this errors! -
gurmani11 - 01.11.2014
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);