C:\Users\usuбrio\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(162) : error 020: invalid symbol name ""
C:\Users\usuбrio\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(169) : error 010: invalid function or declaration
C:\Users\usuбrio\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(304) : error 020: invalid symbol name ""
C:\Users\usuбrio\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(305) : error 029: invalid expression, assumed zero
C:\Users\usuбrio\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(305) : warning 215: expression has no effect
C:\Users\usuбrio\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(305) : error 001: expected token: ";", but found "]"
C:\Users\usuбrio\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(305) : error 029: invalid expression, assumed zero
C:\Users\usuбrio\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(305) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
new randomMessages[3][10] =
{
""chat""COL_LGREEN" Welcome to "Name" "Version" Created by "Creator"",
""chat""COL_LGREEN" Visit our forums for discussion and server updates "Web"",
""chat""COL_LGREEN" Remember to report hackers and rule breakers at /report [playerid] [reason]",
""chat""COL_LGREEN" Join our teamspeak 3 to talk to our staff team and many others! 8.9.6.26:9197",
""chat""COL_LGREEN" Remember to read the rules to prevent you from getting banned /rules"
};
function RandomMessages()
{
new randomMsg = random(sizeof(randomMessages));
SendClientMessageToAll(-1, randomMessages[randomMsg]);
}
new randomMessages[ FRASES ] [ CARACTERES POR FRASE ]
new randomMessages[6][128] =
{
""chat""COL_LGREEN" Welcome to "Name" "Version" Created by "Creator"",
""chat""COL_LGREEN" Visit our forums for discussion and server updates "Web"",
""chat""COL_LGREEN" Remember to report hackers and rule breakers at /report [playerid] [reason]",
""chat""COL_LGREEN" Join our teamspeak 3 to talk to our staff team and many others! 8.9.6.26:9197",
""chat""COL_LGREEN" Remember to read the rules to prevent you from getting banned /rules"
};
PHP код:
PHP код:
|
C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(159) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(164) : error 010: invalid function or declaration C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(171) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(171) : error 017: undefined symbol "CName" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(171) : warning 215: expression has no effect C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(171) : error 001: expected token: ";", but found "-identifier-" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(171) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
""chat""COL_LGREEN" Welcome to "Name" "Version" Created by "Creator"", ""chat""COL_LGREEN" Visit our forums for discussion and server updates "Web"", ""chat""COL_LGREEN" Remember to report hackers and rule breakers at /report [playerid] [reason]", ""chat""COL_LGREEN" Join our teamspeak 3 to talk to our staff team and many others! 8.9.6.26:9197", ""chat""COL_LGREEN" Remember to read the rules to prevent you from getting banned /rules" };
main() { print("\n----------------------------------"); print(""CName" - "Name" "Version" Loaded"); print("----------------------------------\n"); }
O certo й formatar o texto, se remover as "" (aspas) dentro de "" (aspas) compila corretamente.
|
C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(164) : error 029: invalid expression, assumed zero C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(164) : error 008: must be a constant expression; assumed zero C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(300) : error 001: expected token: ";", but found ")" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(300) : error 029: invalid expression, assumed zero C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(300) : warning 215: expression has no effect C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(407) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(441) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(873) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(955) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(983) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(1011) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(1279) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(1291) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2015) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2024) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2034) : error 027: invalid character constant C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2034) : error 017: undefined symbol "ame" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2034) : warning 215: expression has no effect C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2054) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2070) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2090) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2444) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2444) : error 017: undefined symbol "Creator" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2444) : warning 215: expression has no effect C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2444) : error 001: expected token: ";", but found ")" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2444) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 23 Errors.
#define chat "-"
#define COL_LGREEN "{00FF00}"
#define name "hello"
#define web "manja"
#define Creator "SuYaNw"
#define Version "2.0"
new randomMessages[][] =
{
chat COL_LGREEN " Welcome to " name "" Version " Created by ",
chat COL_LGREEN " Visit our forums for discussion and server updates"web"",
chat COL_LGREEN " Remember to report hackers and rule breakers at /report [playerid] [reason]",
chat COL_LGREEN " Join our teamspeak 3 to talk to our staff team and many others! 8.9.6.26:9197",
chat COL_LGREEN " Remember to read the rules to prevent you from getting banned /rules",
};
Ah, estб faltando alguma definiзгo:
pawn Код:
|
C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(171) : error 001: expected token: ";", but found "forward" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(305) : error 001: expected token: ";", but found ")" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(305) : error 029: invalid expression, assumed zero C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(305) : warning 215: expression has no effect C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(412) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(446) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(878) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(960) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(988) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(1016) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(1284) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(1296) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2020) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2029) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2039) : error 027: invalid character constant C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2039) : error 017: undefined symbol "ame" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2039) : warning 215: expression has no effect C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2059) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2075) : error 017: undefined symbol "mysql_query" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2095) : error 017: undefined symbol "mysql_query" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 18 Errors.
C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(171) : error 001: expected token: ";", but found "forward" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(305) : error 001: expected token: ";", but found ")" C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(305) : error 029: invalid expression, assumed zero C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(305) : warning 215: expression has no effect C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2039) : error 027: invalid character constant C:\Users\LELIS\Desktop\GAMEMODES\[GM] Brasil Real World RPG [RW]\gamemodes\zm.pwn(2039) : error 017: undefined symbol "ame" |
Erros em sua include MySQL.
Poste estas 3 linhas (171, 305 e 2039) |
forward load_Map_basic(Mapid, name[], value[]);
function RandomMessages() { new randomMsg = random(sizeof(randomMessages)); SendClientMessageToAll(-1, randomMessages[randomMsg])); //Linha 305 }
stock CheckBan(playerid) { new Query[500],playerIP[16],timeBanned[256],largestringtwo[256],adminName[24],bannedName[24],reasonBanned[128]; GetPlayerIp(playerid, playerIP, sizeof(playerIP)); format(Query, sizeof(Query), "SELECT * FROM `banlog` WHERE ( `Name` = '%s' OR `pIPBanned` = '%s' ) AND `pAccountLock` = '1' LIMIT 1",PlayerName(playerid),playerIP); mysql_query(Query); mysql_store_result(); if(mysql_num_rows() != 0) { while(mysql_fetch_row(Query)) { mysql_fetch_field_row(reasonBanned, "pBannedReason"); mysql_fetch_field_row(adminName, "pBannedBy"); mysql_fetch_field_row(timeBanned, "pTime"); mysql_fetch_field_row(playerIP, "pIPBanned"); mysql_fetch_field_row(bannedName, 'Name'); //Linha 2039 Aqui !!!!!! } format(largestringtwo, sizeof(largestringtwo), "You are currently banned from this server. \r\nUser: %s \r\nIP: %s \r\nTime: %s \r\nAdmin: %s\r\nReason: %s", bannedName, playerIP, timeBanned, adminName, reasonBanned); ShowPlayerDialog(playerid, DIALOG_BANNED, DIALOG_STYLE_MSGBOX, "You are banned from this server", largestringtwo, "Leave", ""); Kick(playerid); printf("Username %s || IP %s is banned!",PlayerName(playerid),playerIP); } return 1; }