14.09.2018, 13:35
Hey sorry for the delay, you had the solution yet I wanted to suggest
In case you were looking for something plainer
PHP код:
static const Msgs[][50] =
{
{"Together forever!"},
{"Long live!"},
{"Test Server"},
{"It's a great day!"}
};
main(){
for(new x = 0; x < 4; x ++){
if(strfind(Msgs[x], "Long", true) != -1){ // Looking for Long Live! string, edit this line how you look for it
printf("String found: %s", Msgs[x]); // printing the found string for debugging purposes
switch(x) {
case 0: printf("CASE 1 : %s", Msgs[x]); // Together Forever! Won't be found
case 1: printf("CASE 2 : %s", Msgs[x]); // <-- Long Live! Will be found.
case 2: printf("CASE 3 : %s", Msgs[x]); // Test Server Won't be found
case 3: printf("CASE 4 : %s", Msgs[x]); // It's a great day! Won't be found
// Instead of printing the strings, use TextDrawSetString on the desired textdraw
}
}
}
return 1;
}
[15:26:16] String found: Long live!
[15:26:16] CASE 2 : Long live!