so habe einen Timer und in der public eine for schleife
public dm1refresh(playerid)
{
new info[1000];
for(new variable = 0;variable<MAX_PLAYERS;variable++)
{
if(DM1[variable] == "1") //Zeile 2982
{
new user123[100];
GetPlayerName(variable,user123,sizeof(user123));
info += user123;
info += "/"; //Zeile 2987
info += dm1points[variable]; //Zeile 2988
info += "\n"; //Zeile 2989
}
}
TextDrawSetString(Textdraw3,info);
}
oben habe die Variablen:
new dm1points[MAX_PLAYERS];
new DM1[MAX_PLAYERS];
new Text:Textdraw3;
Als Fehler erhalte ich:
PHP
pwn(2982) : error 033: array must be indexed (variable "-unknown-")
pwn(2986) : error 033: array must be indexed (variable "info")
pwn(2987) : error 023: array assignment must be simple assignment
pwn(2987) : warning 215: expression has no effect
pwn(2988) : error 023: array assignment must be simple assignment
pwn(2988) : warning 215: expression has no effect
pwn(2989) : error 023: array assignment must be simple assignment
pwn(2989) : warning 215: expression has no effect
Hoffe auf Hilfe
mfg Puiscel