Array Must Be Indexed. :/
Code:
and it gives em erros in the vairialbe (array mst be indexed:() how do i fix this? |
what line?
try "%s", wmsg |
Quote:
format(wmsg, 224, "[Stormsys] %s(Server Admin), Has Just Entered The Game", playername) client_print(id, print_chat, "Welcome Admin Enjoy Your Stay") client_print(0, print_chat, wmsg) <-------------(wmsg) |
Perhaps unrelated to your question, but a problem all the same...
Code:
Actually, I see you are consistently using get_cvar_num where it appears you should be using get_cvar_str. In the code you've shown us, change all occurences of get_cvar_num to get_cvar_str. Be sure to look the function up though, because the arguments you pass are slightly different. |
hey thanks both of you,
got the main problem fixed. skill left with 3 errors if(!get_cvar_str("sshp_welcomemsg")==""){ or if(get_cvar_num("somming")== 1) i get another array error there |
if(get_cvar_num("sshp_welcomemsg")==""){
you can do this if(get_cvar_num("sshp_welcomemsg")){ or if(get_cvar_num("sshp_welcomemsg") == "1"){ |
Brad just said you cannot use get_cvar_str the same way.
Don't use it like this Code:
Use this Code:
|
| All times are GMT -4. The time now is 23:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.