Guten Abend,
ich bin dabei ein Wetter system zu schreiben und habe ne frage würde das gehen?
forward Wetter();
public Wetter()
{
new str[70],string1[258],string2[258],string3[258];
Weather[0] = WetterRandomLS[random(sizeof(WetterRandomLS))];
Weather[1] = WetterRandomSF[random(sizeof(WetterRandomSF))];
Weather[2] = WetterRandomLV[random(sizeof(WetterRandomLV))];
for(new i = 0; i<sizeof(Weather); i++) {
switch(Weather[i]) {
case 2:{str="Test1";}
case 3:{str="Test1";}
case 4:{str="Test1";}
case 5:{str="Test1";}
case 6:{str="Test1";}
case 15:{str="Test1";}
case 16:{str="Test1";}
case 18:{str="Test1";}
}
format(string1,258,"LS : %s", str);
format(string2,258,"SF : %s", str);
format(string3,258,"LV : %s", str);
SendClientMessageToAll(COLOR_YELLOW,"_____________|Wetter für San Andreas|_____________");
SendClientMessageToAll(COLOR_WHITE,string1);
SendClientMessageToAll(COLOR_WHITE,string2);
SendClientMessageToAll(COLOR_WHITE,string3);
SendClientMessageToAll(COLOR_YELLOW,"|_________________________________________________|");
}
return 1;
}
public Wetter()
{
new str[70],string1[258],string2[258],string3[258];
Weather[0] = WetterRandomLS[random(sizeof(WetterRandomLS))];
Weather[1] = WetterRandomSF[random(sizeof(WetterRandomSF))];
Weather[2] = WetterRandomLV[random(sizeof(WetterRandomLV))];
for(new i = 0; i<sizeof(Weather); i++) {
switch(Weather[i]) {
case 2:{str="Test1";}
case 3:{str="Test1";}
case 4:{str="Test1";}
case 5:{str="Test1";}
case 6:{str="Test1";}
case 15:{str="Test1";}
case 16:{str="Test1";}
case 18:{str="Test1";}
}
format(string1,258,"LS : %s", str);
format(string2,258,"SF : %s", str);
format(string3,258,"LV : %s", str);
SendClientMessageToAll(COLOR_YELLOW,"_____________|Wetter für San Andreas|_____________");
SendClientMessageToAll(COLOR_WHITE,string1);
SendClientMessageToAll(COLOR_WHITE,string2);
SendClientMessageToAll(COLOR_WHITE,string3);
SendClientMessageToAll(COLOR_YELLOW,"|_________________________________________________|");
}
return 1;
}
Ich bedanke mich für jede hilfe