SA-MP Forums Archive
Help with these 4 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: Help with these 4 ERRORS (/showthread.php?tid=360530)



Help with these 4 ERRORS - Diovis - 18.07.2012

Код:
C:\Users\DIOVIS\Desktop\NGRP 0.3e\pawno\include\streamer.inc(322) : warning 217: loose indentation
C:\Users\DIOVIS\Desktop\NGRP 0.3e\pawno\include\streamer.inc(323) : warning 217: loose indentation
C:\Users\DIOVIS\Desktop\NGRP 0.3e\gamemodes\NGRP_main.pwn(3660) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\DIOVIS\Desktop\NGRP 0.3e\gamemodes\NGRP_main.pwn(3660) : error 029: invalid expression, assumed zero
C:\Users\DIOVIS\Desktop\NGRP 0.3e\gamemodes\NGRP_main.pwn(3660) : warning 215: expression has no effect
C:\Users\DIOVIS\Desktop\NGRP 0.3e\gamemodes\NGRP_main.pwn(3660) : error 001: expected token: ";", but found "]"
C:\Users\DIOVIS\Desktop\NGRP 0.3e\gamemodes\NGRP_main.pwn(3660) : fatal error 107: too many error messages on one line

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


4 Errors.
These are the lines the problem takes place:


Код:
stock g_mysql_Init()
{
	if(!strcmp(SQL_HOST[64], SQL_DB[64], SQL_USER[32], SQL_PASS[128], iValue))
	if(!strcmp(SQL_SHOST[64], SQL_SDB[64], SQL_SUSER[32], SQL_SPASS[128]))
	if(!strcmp(fileString[128], File: fileHandle = fopen("mysql.cfg", io_read)))

	while(fread(fileHandle, fileString, sizeof(fileString))) {
		if(ini_GetValue(fileString, "HOST", SQL_HOST, sizeof(SQL_HOST))) continue;
		if(ini_GetValue(fileString, "DB", SQL_DB, sizeof(SQL_DB))) continue;
		if(ini_GetValue(fileString, "USER", SQL_USER, sizeof(SQL_USER))) continue;
		if(ini_GetValue(fileString, "PASS", SQL_PASS, sizeof(SQL_PASS))) continue;
		if(ini_GetValue(fileString, "SHOST", SQL_SHOST, sizeof(SQL_SHOST))) continue;
		if(ini_GetValue(fileString, "SDB", SQL_SDB, sizeof(SQL_SDB))) continue;
		if(ini_GetValue(fileString, "SUSER", SQL_SUSER, sizeof(SQL_SUSER))) continue;
		if(ini_GetValue(fileString, "SPASS", SQL_SPASS, sizeof(SQL_SPASS))) continue;
		if(ini_GetInt(fileString, "SERVER", servernumber)) continue;
		if(ini_GetInt(fileString, "DEBUG", iValue)) continue;
	}
Line 3660 :

Код:
if(!strcmp(SQL_HOST[64], SQL_DB[64], SQL_USER[32], SQL_PASS[128], iValue))



Re: Help with these 4 ERRORS - ZBits - 18.07.2012

can you tell which line in 3360?


Re: Help with these 4 ERRORS - ZBits - 18.07.2012

pawn Код:
stock g_mysql_Init()
{
    if(!strcmp(SQL_HOST[64], SQL_DB[64], SQL_USER[32], SQL_PASS[128], iValue));
    if(!strcmp(SQL_SHOST[64], SQL_SDB[64], SQL_SUSER[32], SQL_SPASS[128]))
    if(!strcmp(fileString[128], File: fileHandle = fopen("mysql.cfg", io_read)))

    while(fread(fileHandle, fileString, sizeof(fileString))) {
        if(ini_GetValue(fileString, "HOST", SQL_HOST, sizeof(SQL_HOST))) continue;
        if(ini_GetValue(fileString, "DB", SQL_DB, sizeof(SQL_DB))) continue;
        if(ini_GetValue(fileString, "USER", SQL_USER, sizeof(SQL_USER))) continue;
        if(ini_GetValue(fileString, "PASS", SQL_PASS, sizeof(SQL_PASS))) continue;
        if(ini_GetValue(fileString, "SHOST", SQL_SHOST, sizeof(SQL_SHOST))) continue;
        if(ini_GetValue(fileString, "SDB", SQL_SDB, sizeof(SQL_SDB))) continue;
        if(ini_GetValue(fileString, "SUSER", SQL_SUSER, sizeof(SQL_SUSER))) continue;
        if(ini_GetValue(fileString, "SPASS", SQL_SPASS, sizeof(SQL_SPASS))) continue;
        if(ini_GetInt(fileString, "SERVER", servernumber)) continue;
        if(ini_GetInt(fileString, "DEBUG", iValue)) continue;
    }
tell me if it works


Re: Help with these 4 ERRORS - Diovis - 18.07.2012

Quote:
Originally Posted by Domnic Toretto
Посмотреть сообщение
pawn Код:
stock g_mysql_Init()
{
    if(!strcmp(SQL_HOST[64], SQL_DB[64], SQL_USER[32], SQL_PASS[128], iValue));
    if(!strcmp(SQL_SHOST[64], SQL_SDB[64], SQL_SUSER[32], SQL_SPASS[128]))
    if(!strcmp(fileString[128], File: fileHandle = fopen("mysql.cfg", io_read)))

    while(fread(fileHandle, fileString, sizeof(fileString))) {
        if(ini_GetValue(fileString, "HOST", SQL_HOST, sizeof(SQL_HOST))) continue;
        if(ini_GetValue(fileString, "DB", SQL_DB, sizeof(SQL_DB))) continue;
        if(ini_GetValue(fileString, "USER", SQL_USER, sizeof(SQL_USER))) continue;
        if(ini_GetValue(fileString, "PASS", SQL_PASS, sizeof(SQL_PASS))) continue;
        if(ini_GetValue(fileString, "SHOST", SQL_SHOST, sizeof(SQL_SHOST))) continue;
        if(ini_GetValue(fileString, "SDB", SQL_SDB, sizeof(SQL_SDB))) continue;
        if(ini_GetValue(fileString, "SUSER", SQL_SUSER, sizeof(SQL_SUSER))) continue;
        if(ini_GetValue(fileString, "SPASS", SQL_SPASS, sizeof(SQL_SPASS))) continue;
        if(ini_GetInt(fileString, "SERVER", servernumber)) continue;
        if(ini_GetInt(fileString, "DEBUG", iValue)) continue;
    }
tell me if it works
Nope, you did not change anything


Re: Help with these 4 ERRORS - Rudy_ - 18.07.2012

pawn Код:
stock g_mysql_Init()
{
    if(!strcmp(SQL_HOST[64], SQL_DB[64], SQL_USER[32], SQL_PASS[128], iValue));
    if(!strcmp(SQL_SHOST[64], SQL_SDB[64], SQL_SUSER[32], SQL_SPASS[128]))
    if(!strcmp(fileString[128], File: fileHandle = fopen("mysql.cfg", io_read)))
    while(fread(fileHandle, fileString, sizeof(fileString)))
    {
        if(ini_GetValue(fileString, "HOST", SQL_HOST, sizeof(SQL_HOST))) continue;
        if(ini_GetValue(fileString, "DB", SQL_DB, sizeof(SQL_DB))) continue;
        if(ini_GetValue(fileString, "USER", SQL_USER, sizeof(SQL_USER))) continue;
        if(ini_GetValue(fileString, "PASS", SQL_PASS, sizeof(SQL_PASS))) continue;
        if(ini_GetValue(fileString, "SHOST", SQL_SHOST, sizeof(SQL_SHOST))) continue;
        if(ini_GetValue(fileString, "SDB", SQL_SDB, sizeof(SQL_SDB))) continue;
        if(ini_GetValue(fileString, "SUSER", SQL_SUSER, sizeof(SQL_SUSER))) continue;
        if(ini_GetValue(fileString, "SPASS", SQL_SPASS, sizeof(SQL_SPASS))) continue;
        if(ini_GetInt(fileString, "SERVER", servernumber)) continue;
        if(ini_GetInt(fileString, "DEBUG", iValue)) continue;
    }
This might help in Lose Indentation, lemme find the others


Re: Help with these 4 ERRORS - ZBits - 18.07.2012

ahh alright