Hey,
Da ich derzeitig auf das recourcensparende scripten Wert lege frage ich wieso hier errors kommen:
F:\NicOS\Daniel_Zucht\Samp_Script\gamemodes\NicOS.pwn(249) : error 047: array sizes do not match, or destination array is too small
F:\NicOS\Daniel_Zucht\Samp_Script\gamemodes\NicOS.pwn(251) : error 006: must be assigned to an array
F:\NicOS\Daniel_Zucht\Samp_Script\gamemodes\NicOS.pwn(253) : error 006: must be assigned to an array
F:\NicOS\Daniel_Zucht\Samp_Script\gamemodes\NicOS.pwn(255) : error 006: must be assigned to an array
F:\NicOS\Daniel_Zucht\Samp_Script\gamemodes\NicOS.pwn(257) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Code:
stock GetDatabaseInformations()
{
new query[128];
format(query,128,"SELECT * FROM `settings`");
new DBResult:result[4];
for(new i = 0; i < 4; i++)
{
db_query(Database[i],query);
}
db_get_field_assoc(result[0],"Datenbankhost",query,64);
datahost = query;
db_get_field_assoc(result[1],"Datenbankuser",query,64);
datahost[1] = query;
db_get_field_assoc(result[2],"Datenbankpass",query,64);
datahost[2] = query;
db_get_field_assoc(result[3],"Datenbank",query,64);
datahost[3] = query;
printf("Host:%s",datahost[0]);
db_free_result(result);
return 1;
}
Gruss