Hi! This time i come to assist me to settle these warnings in this code:
PHP Code:
public handle_say(id)
{
static arg[192]
read_args(arg,191)
remove_quotes(arg)
new sw = 0
new i= 0
new j
new g_words[][] ={ "ready","gaben","notready","dmg","sum","hp","help" }
if ( arg[0] == '.' || arg[0] == '!' )
{
do{
if( equal(arg[ 1 ], g_words[ i ]) )
{
sw = 1
j = 0
client_cmd(id,arg);
return PLUGIN_CONTINUE;
}
else{
sw = 0
i++
}
}while(sw = 0 || i < sizeof(g_words))
client_cmd(id,arg);
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
The warnings are in the image...