SA-MP Forums Archive
How Define these Linie? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How Define these Linie? (/showthread.php?tid=406780)



How Define these Linie? - DAVIDXP - 11.01.2013

Hello I have a problem with an Linie :
Quote:

for ( new i; i < PING_MAX_EXCEEDS; i++ ) PlayerInfo[ playerid ][ pPing ][ i ] = 0;

And Gives me these:
Quote:

C:\Users\xxx\Desktop\TREB reparate\RAS.pwn(150) : error 017: undefined symbol "PING_MAX_EXCEEDS"
C:\Users\xxx\Desktop\TREB reparate\xx.pwn(150) : warning 215: expression has no effect
C:\Users\xxx\Desktop\TREB reparate\xx.pwn(150) : error 001: expected token: ";", but found "["
C:\Users\xxx\Desktop\TREB reparate\xx.pwn(150) : error 029: invalid expression, assumed zero
C:\Users\xxx\Desktop\TREB reparate\xx.pwn(150) : fatal error 107: too many error messages on one line

ON:I need to define only PING_MAX_EXCEEDS, pPing i have defined..
Sorry for my ENGLISH..:d



Respuesta: How Define these Linie? - Fabio11 - 11.01.2013

You must define PING_MAX_EXCEEDS
pawn Код:
// At the top
#define PING_MAX_EXCEEDS        1000
// 1000 or whatever

// At your script

for ( new i; i < PING_MAX_EXCEEDS; i++ )
{
    PlayerInfo[ playerid ][ pPing ][ i ] = 0;
}

// But I don't see what you want to do with this script...