Raised This Month: $ Target: $400
 0% 

sma error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xtothx95
New Member
Join Date: Nov 2011
Old 11-30-2011 , 06:11   sma error
Reply With Quote #1

rror 052: multi-dimensional arrays must be fully initialized

PLS help:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>

#define PLUGIN "Say Chat Sounds"
#define VERSION "1.0"
#define AUTHOR "Kiti"

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say","Say_sounds")
}


// A szavak melyeket beirsz a chatbe

new phrase[1][] = {"elnezest", "bocsanat"}

new phrase1[2][] = {"faszba", "picsaba"}

new phrase2[3][] = {"hehe", "haha"}

new phrase3[4][] = {"franci", "francba"}

new phrase4[5][] = {"uram", "fonok"}

new phrase5[6][] = {"terulet", "hely"}

new phrase6[7][] = {"ahh", "ohh"}

////////////////////////////////////////////////////////////////////////////////////////////////////

// A hangok melyek hallatszani fognak

new elnezest [] = {"misc/elnezest"}

new faszba [] = {"misc/faszba"}

new hehe [] = {"misc/hehe"}

new franci [] = {"misc/franci"}

new uram [] = {"misc/uram"}

new terulet [] = {"misc/terulet"}

new ahh [] = {"misc/ahh"}

////////////////////////////////////////////////////////////////////////////////////////////////////

public Say_sounds(id)
{
new said[192]
read_args(said,191)
for(new i = 0 ;i < 1; i++)
if(containi(said,phrase[i]) != -1){
client_cmd(0,"spk %s",elnezest)
server_cmd("amx_tsay red <> elnezest <>")
break;
}
for(new i = 0 ;i < 2; i++)
if(containi(said,phrase1[i]) != -1){
server_cmd("amx_tsay red <> faszba <>")
client_cmd(0,"spk %s",faszba)
break;
}
for(new i = 0 ;i < 3; i++)
if(containi(said,phrase2[i]) != -1){
server_cmd("amx_tsay red <> hehe <>")
client_cmd(0,"spk %s",hehe)
break;
}
for(new i = 0 ;i < 4; i++)
if(containi(said,phrase3[i]) != -1){
server_cmd("amx_tsay red <> franci <>")
client_cmd(0,"spk %s",franci)
break;
}
for(new i = 0 ;i < 5; i++)
if(containi(said,phrase4[i]) != -1){
server_cmd("amx_tsay red <> uram <>")
client_cmd(0,"spk %s",uram)
break;
}
for(new i = 0 ;i < 6; i++)
if(containi(said,phrase5[i]) != -1){
server_cmd("amx_tsay red <> terulet <>")
client_cmd(0,"spk %s",terulet)
break;
}
for(new i = 0 ;i < 7; i++)
if(containi(said,phrase6[i]) != -1){
server_cmd("amx_tsay red <> ahh <>")
client_cmd(0,"spk %s",ahh)
break;
}

}

public plugin_precache(){

precache_sound("misc/elnezest.mp3")
precache_sound("misc/faszba.mp3")
precache_sound("misc/hehe.mp3")
precache_sound("misc/franci.mp3")
precache_sound("misc/uram.mp3")
precache_sound("misc/terulet.mp3")
precache_sound("misc/ahh.mp3")
}

Last edited by xtothx95; 11-30-2011 at 06:12.
xtothx95 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode