Guten Abend,
Ich bin dabei ein Tankstellen System zu schreiben und habe folgendes Problem:
in diesem Stock :
{
new from[64];
for(new i=0; i<sizeof(TankInfo); i++) {
format(from,64,"%d",i);
TankInfo[i][fSQLid] = mysql_GetInt("tankstelle","id","id",TankInfo[i][fSQLid]);
TankInfo[i][Besetzt] = mysql_GetInt("tankstelle","Besetzt","id",TankInfo[i][fSQLid]);
TankInfo[i][Kasse] = mysql_GetInt("tankstelle","Kasse","id",TankInfo[i][fSQLid]);
TankInfo[i][KaufLevel] = mysql_GetInt("tankstelle","KaufLevel","id",TankInfo[i][fSQLid]);
TankInfo[i][KaufPreis] = mysql_GetInt("tankstelle","KaufPreis","id",TankInfo[i][fSQLid]);
TankInfo[i][TankPreis] = mysql_GetInt("tankstelle","TankPreis","id",TankInfo[i][fSQLid]);
TankInfo[i][Max_Pords] = mysql_GetInt("tankstelle","Max_Prods","id",TankInfo[i][fSQLid]);
TankInfo[i][Mini_Pords] = mysql_GetInt("tankstelle","Mini_Pords","id",TankInfo[i][fSQLid]);
format(TankInfo[i][Besitzer],sizeof(TankInfo[i][Besitzer]),"%s",mysql_GetString("tankstelle","Besitzer","id",TankInfo[i][fSQLid]));//hir dir Zeile
}
return 1;
}
Bekome ich folgende Errors:
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(1734) : error 001: expected token: "]", but found "-identifier-"
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(1734) : warning 215: expression has no effect
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(1734) : error 001: expected token: ";", but found "]"
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(1734) : error 029: invalid expression, assumed zero
C:\Users\Fabian\Desktop\Mein Samp Server\gamemodes\Selfmade.pwn(1734) : 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.