top 3 players
#1

So I've got 4 errors in one line :

PHP код:
C:\Users\fomina.janett1919\Desktop\test\gamemodes\test.pwn(7060) : error 012invalid function callnot a valid address
C
:\Users\fomina.janett1919\Desktop\test\gamemodes\test.pwn(7060) : warning 215expression has no effect
C
:\Users\fomina.janett1919\Desktop\test\gamemodes\test.pwn(7060) : error 001expected token";"but found ")"
C:\Users\fomina.janett1919\Desktop\test\gamemodes\test.pwn(7060) : error 029invalid expressionassumed zero
C
:\Users\fomina.janett1919\Desktop\test\gamemodes\test.pwn(7060) : fatal error 107too many error messages on one line 
PHP код:
if(id1 != -&& PlayerDamage[id1] != 0){ SendClientMessageToAll(-1"*** 1st: %s with %d damage"PlayerName(id1), PlayerDamage[id1]);} 
Full script:

PHP код:
stock top3players(playerid){
new 
id1 = -1id2 = -1id3 = -1pPlayerDamage = -100string[115];
    for(new 
iMAX_PLAYERSi++) if(PlayerDamage[i] > pPlayerDamage && PlayerDamage[i] != 0id1 i;
    
pPlayerDamage = -100;
    for(new 
iMAX_PLAYERSi++) if(PlayerDamage[i] > pPlayerDamage && != id1 && PlayerDamage[i] != 0id2 i;
    
pPlayerDamage = -100;
    for(new 
iMAX_PLAYERSi++) if(PlayerDamage[i] > pPlayerDamage && != id2 && != id1 && PlayerDamage[i] != 0id3i;
    
SendClientMessageToAll(-1"{e6b3ff}*** Top 3 Players by damage");
    if(
id1 != -&& PlayerDamage[id1] != 0){ SendClientMessageToAll(-1"*** 1st: %s with %d damage"PlayerName(id1), PlayerDamage[id1]);}
    else if(
id2 != -&& PlayerDamage[id2] != 0){ SendClientMessageToAll(-1"*** 2dn: %s with %d damage"PlayerName(id1), PlayerDamage[id2]);}
    else if(
id3 != -&& PlayerDamage[id3] != 0){ SendClientMessageToAll(-1"*** 3rd: %s with %d damage"PlayerName(id1), PlayerDamage[id3]);}
    return 
1;

Reply


Messages In This Thread
top 3 players - by severance - 25.08.2018, 14:07
Re: top 3 players - by NeXTGoD - 25.08.2018, 14:22
Re: top 3 players - by severance - 25.08.2018, 17:29
Re: top 3 players - by NeXTGoD - 25.08.2018, 20:30

Forum Jump:


Users browsing this thread: 4 Guest(s)