Ich habe mal versucht es in MySQL zu machen es kommen folgende Errors
Code:
new Weapon[13], Ammo[13];
for(new i=0;i<13;i++)
{
GetPlayerWeaponData(playerid, i, Weapon[i], Ammo[i]);
format(query,sizeof(query),"UPDATE `accounts` SET `Waffe%d`='%d', `Ammo%d`='%d' WHERE `Name`='%s'," i, Weapon[i], i, Ammo[i], SpielerName(playerid));
mysql_query(query);
}
Fehler:
C:\Users\user\Desktop\MySELFMADE\gamemodes\myselfmade.pwn(1290) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\user\Desktop\MySELFMADE\gamemodes\myselfmade.pwn(1290) : warning 215: expression has no effect
C:\Users\user\Desktop\MySELFMADE\gamemodes\myselfmade.pwn(1290) : warning 215: expression has no effect
C:\Users\user\Desktop\MySELFMADE\gamemodes\myselfmade.pwn(1290) : warning 215: expression has no effect
C:\Users\user\Desktop\MySELFMADE\gamemodes\myselfmade.pwn(1290) : warning 215: expression has no effect
C:\Users\user\Desktop\MySELFMADE\gamemodes\myselfmade.pwn(1290) : error 001: expected token: ";", but found ")"
C:\Users\user\Desktop\MySELFMADE\gamemodes\myselfmade.pwn(1290) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\MySELFMADE\gamemodes\myselfmade.pwn(1290) : fatal error 107: too many error messages on one line
Kann mir da mal jemand helfen....Ansonsten mache ich mal ein eigenes Thread auf oder Kleine Scripting fragen.