i was asking my self if it is the problem, i have fixed bunch of arrays indexed to 30, 31, 32, etc, but the problem its not solved T_T
i want to know if maybe the problem is here...
PHP Code:
if(is_user_bot(id)) return PLUGIN_CONTINUE;
new szUserName[32];
get_user_name(id, szUserName, 32);
new ip[15];
get_user_ip(id, ip, charsmax(ip), 1);
new iPlayers[32], iNum, i;
get_players(iPlayers, iNum);
new izStats[8], izBody[8]
new iRankPos, iRankMax
iRankPos = get_user_stats(id,izStats,izBody)
iRankMax = get_statsnum()
for(i = 0; i <= iNum; i++)
{
new x = iPlayers[i];
if(!is_user_connected(x) || is_user_bot(x))
continue;
client_cmd(x, "spk %s", g_sonido_entrada);
new szMessage[164];
format(szMessage, 163, "^x01 The player ^x04%s ^x01Has conected to ^x04My sv^x01, His rank is ^x04%i of %i^x01, and his ip is: ^x04%s", szUserName,iRankPos,iRankMax,ip);
message_begin(MSG_ONE, g_iMsgSayText, {0,0,0}, x);
write_byte (x);
write_string(szMessage);
message_end ();
}
return PLUGIN_CONTINUE;
maybe i could use emit_sound, and make the message for all, i dont know, could anybody help me?
or this code is fine?u.u