format(smallstring[0], sizeof smallstring[0],"%d%d%d%d%d",random(9),random(9),random(9),random(9),random(9)); // used for the uniqe faction code mysql_real_escape_string(smallstring[0], eStr[0]);
C:\Users\Tol\Desktop\ML-V3 16 juli 2011\pawno\include\homemadeincludes/factions.inc(61) : error 001: expected token: "]", but found "-integer value-" C:\Users\Tol\Desktop\ML-V3 16 juli 2011\pawno\include\homemadeincludes/factions.inc(61) : warning 215: expression has no effect C:\Users\Tol\Desktop\ML-V3 16 juli 2011\pawno\include\homemadeincludes/factions.inc(61) : error 001: expected token: ";", but found "]" C:\Users\Tol\Desktop\ML-V3 16 juli 2011\pawno\include\homemadeincludes/factions.inc(61) : error 029: invalid expression, assumed zero C:\Users\Tol\Desktop\ML-V3 16 juli 2011\pawno\include\homemadeincludes/factions.inc(61) : fatal error 107: too many error messages on one line
new smallstring[value][stringsize];
new smallstring[stringsize];
new smallstring[2][50];
Oh, yeah, my bad. The error is actually because you don't have brackets around your sizeof function .
|
format(smallstring[0], 50, "%d%d%d%d%d",random(9),random(9),random(9),random(9),random(9)); // used for the uniqe faction code
mysql_real_escape_string(smallstring[0], eStr[0]);
format(smallstring[0], 50, "%d", (10000 + random(99999)))); // used for the uniqe faction code
mysql_real_escape_string(smallstring[0], eStr[0]);