Fixed runtime error bugs
This commit is contained in:
parent
7963eb1cde
commit
766246648d
|
@ -281,7 +281,8 @@ getAttackers(id) {
|
||||||
new amax = get_maxplayers()
|
new amax = get_maxplayers()
|
||||||
for(new a = 1; a <= amax; ++a){
|
for(new a = 1; a <= amax; ++a){
|
||||||
|
|
||||||
if(get_user_astats(id,a,stats,body,wpn,31)){
|
if(is_user_connected(a) && get_user_astats(id,a,stats,body,wpn,31))
|
||||||
|
{
|
||||||
found = 1
|
found = 1
|
||||||
if (stats[0])
|
if (stats[0])
|
||||||
format(wpn,31," -- %s",wpn)
|
format(wpn,31," -- %s",wpn)
|
||||||
|
@ -301,7 +302,8 @@ getVictims(id) {
|
||||||
new pos = format(g_Buffer,2047,"%L^n",id,"VICTIMS")
|
new pos = format(g_Buffer,2047,"%L^n",id,"VICTIMS")
|
||||||
new amax = get_maxplayers()
|
new amax = get_maxplayers()
|
||||||
for(new a = 1; a <= amax; ++a){
|
for(new a = 1; a <= amax; ++a){
|
||||||
if(get_user_vstats(id,a,stats,body,wpn,31)){
|
if(is_user_connected(a) && get_user_vstats(id,a,stats,body,wpn,31))
|
||||||
|
{
|
||||||
found = 1
|
found = 1
|
||||||
if (stats[1])
|
if (stats[1])
|
||||||
format(wpn,31," -- %s",wpn)
|
format(wpn,31," -- %s",wpn)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user