Beitrag von Kriegerbeere ()
Dieser Beitrag wurde vom Autor gelöscht ().
er hat die die selben dateien wie ich aber warum sind alle errors weg wenn ich #include <sscanf> mache ohne 2 aber dann nur noch der read error
und was soll ich jetzt machen?
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(864) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(866) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(889) : error 055: start of function body without function header
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(891) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(894) : error 021: symbol already defined: "print"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(895) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(897) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(900) : error 021: symbol already defined: "print"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(903) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(906) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(908) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(911) : error 021: symbol already defined: "print"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(914) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(973) : error 021: symbol already defined: "mysql_GetInt"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(1323) : warning 203: symbol is never used: "MySQLConnection"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(1323) : warning 203: symbol is never used: "Textdraw2"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
17 Errors.
Hatte #include <ocmd> oben irgendwie weggelöscht
Was mit den Errors ?
Poste mal die jeweiligen Zeilen wo die Errors kommen.
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(973) : error 021: symbol already defined: "mysql_GetInt"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(1323) : warning 203: symbol is never used: "MySQLConnection"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(1323) : warning 203: symbol is never used: "Textdraw2"
mysql_GetInt ist schon definiert, MySQLConnection wird nicht benutzen genau so wie Textdraw2(Definiert aber wird nirgens verwendet)
Mit freundlichen Grüßen
stock mysql_GetInt(Table[], Field[], Where[], Is[])
{
new query[128];
mysql_real_escape_string(Table, Table);
mysql_real_escape_string(Field, Field);
mysql_real_escape_string(Where, Where);
mysql_real_escape_string(Is, Is);
format(query, 128, "SELECT `%s` FROM `%s` WHERE `%s` = '%s'", Field, Table, Where, Is);
mysql_query(query);
mysql_store_result();
new sqlint = mysql_fetch_int();
mysql_free_result();
return sqlint;
}
Das ist von Zeile 971 bis 984
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(973) : error 021: symbol already defined: "mysql_GetInt"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(1323) : warning 203: symbol is never used: "MySQLConnection"
Hab das "MySQLConnection" raus gelöscht warning ist weg
und new Text:Textdraw2; warning auch weg
hier nochmal die errors
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(527) : error 017: undefined symbol "Connect_To_Database"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(803) : error 017: undefined symbol "CreateAccount"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(851) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(862) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(864) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(887) : error 055: start of function body without function header
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(889) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(892) : error 021: symbol already defined: "print"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(893) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(895) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(898) : error 021: symbol already defined: "print"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(901) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(904) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(906) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(909) : error 021: symbol already defined: "print"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(912) : error 010: invalid function or declaration
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(971) : error 021: symbol already defined: "mysql_GetInt"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
17 Errors.
//edit habe noch den mysql getint weg war doppelt drin
ah musste 2 sachen definen jetzt noch
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(529) : error 029: invalid expression, assumed zero
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(529) : error 001: expected token: ")", but found ";"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(529 -- 533) : warning 215: expression has no effect
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(533) : error 001: expected token: ";", but found "-identifier-"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(533) : fatal error 107: too many error messages on one line
Connect_To_Database();
//Creat3DTextLabel("Text",FARBE,x,y,z,sichtbarkeit,0,0)
AddStaticVehicle(462,1314.4565,-1370.5164,13.1899,132.6874,7,7); // Roller 1
529-531
{
print("\n----------------------------------");
print(" Test");
print("----------------------------------\n");
}
public OnGameModeInit()
{
Connect_To_Database();
//Creat3DTextLabel("Text",FARBE,x,y,z,sichtbarkeit,0,0);
AddStaticVehicle(462,1314.4565,-1370.5164,13.1899,132.6874,7,7); // Roller 1
AddStaticVehicle(462,1314.7246,-1373.1055,13.2183,136.5349,7,7); // Roller 2
AddStaticVehicle(462,1315.0167,-1375.4841,13.2409,137.2651,7,7); // Roller 3
AddStaticVehicle(462,1315.4655,-1377.7512,13.2966,136.8607,7,7); // Roller 4
AddStaticVehicle(462,1305.2439,-1370.2947,13.1745,221.9682,7,7); // Roller 5
AddStaticVehicle(462,1305.1158,-1372.5562,13.2049,226.5932,7,7); // Roller 6
AddStaticVehicle(462,1304.8389,-1374.6962,13.2360,228.4654,7,7); // Roller 7
AddStaticVehicle(462,1304.6636,-1377.1416,13.2701,230.7128,7,7); // Roller 8
ManualVehicleEngineAndLights();
521-540
hab kommen die selben error
Ich denke mal das der Fehler weiter unten von OnGameModeInit liegt. Zeig mal die Zeilen unter ManualVehicleEngineAndLights().
Mencent
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(529) : error 029: invalid expression, assumed zero
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(529) : error 001: expected token: ")", but found ";"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(529 -- 533) : warning 215: expression has no effect
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(533) : error 001: expected token: ";", but found "-identifier-"
C:\Users\rAuL\Desktop\Test\gamemodes\CnR.pwn(533) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
public OnGameModeInit()
{
Connect_To_Database();
//Creat3DTextLabel("Text",FARBE,x,y,z,sichtbarkeit,0,0);
ManualVehicleEngineAndLights();
SetGameModeText("Cops and Robbers");
AddPlayerClass(186,1310.1710,-1370.6895,13.5789,179.6585,0,0,0,0,0,0);
EnableStuntBonusForAll(0);
ManualVehicleEngineAndLights();
Zeile 527 - 538