SA-MP Forums Archive
Error compiler pawno - 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: Error compiler pawno (/showthread.php?tid=583204)



Error compiler pawno - bimax999 - 26.07.2015

Quote:

C:\Users\Johny_Test\Desktop\PlayArt\gamemodes\Play Art.pwn(7992) : warning 202: number of arguments does not match definition
C:\Users\Johny_Test\Desktop\PlayArt\gamemodes\Play Art.pwn(8595) : error 029: invalid expression, assumed zero
C:\Users\Johny_Test\Desktop\PlayArt\gamemodes\Play Art.pwn(8595) : error 029: invalid expression, assumed zero
C:\Users\Johny_Test\Desktop\PlayArt\gamemodes\Play Art.pwn(8595) : error 029: invalid expression, assumed zero
C:\Users\Johny_Test\Desktop\PlayArt\gamemodes\Play Art.pwn(8595) : fatal error 107: too many error messages on one line

LINE!: 8595: switch( time - g_cleoData[ playerid ] [ E_FK_LASTDEATH ] )

Please help me


Re: Error compiler pawno - gurmani11 - 26.07.2015

pawn Код:
new x =  time - g_cleoData[ playerid ] [ E_FK_LASTDEATH ];
switch( x )
i think it will work i dont know more


Re: Error compiler pawno - bimax999 - 26.07.2015

Quote:
Originally Posted by gurmani11
Посмотреть сообщение
pawn Код:
new x =  time - g_cleoData[ playerid ] [ E_FK_LASTDEATH ];
switch( x )
i think it will work i dont know more
Where add?


AW: Error compiler pawno - Mencent - 26.07.2015

Hello!

@gurmani11:
I tested it, and it work. So the mistake is anywhere else.


@bimaxx999:
Can you send us more code?


Re: Error compiler pawno - bimax999 - 26.07.2015

Yes look:
Quote:

new time = gettime( ), stringfk[256];
if(killerid == INVALID_PLAYER_ID)
{
switch( time - g_cleoData[ playerid ] [ E_FK_LASTDEATH ] )
{
case 0 .. 3:
{
g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] ++;
if( g_cleoData[ playerid ] [ E_FK_DEATHSPAM ] >= 3 )




AW: Error compiler pawno - Mencent - 26.07.2015

Try this:
PHP код:
new stringfk[256];
if(
killerid != INVALID_PLAYER_ID)
{
    switch(
gettime() - g_cleoData[playerid][E_FK_LASTDEATH])
    {
        case 
0..3:
        {
            
g_cleoData[playerid][E_FK_LASTDEATH] ++;
            if(
g_cleoData[playerid][E_FK_LASTDEATH] >= 3)
        }
    }

If it doesn't work you should send us more code and the current warning-codes in the compiler.


Re: Error compiler pawno - bimax999 - 26.07.2015

NO'T WORK .. INVALID EXPRESION HELP ME PLEASE


AW: Error compiler pawno - Mencent - 26.07.2015

Can you send me more code?

Otherwise can you show us how you declared g_cleoData[playerid][E_FK_LASTDEATH]?


Re: Error compiler pawno - bimax999 - 26.07.2015

I deleted those lines because they are useless now receiving errors:
Quote:

C:\Users\Johny_Test\Desktop\PlayArt\gamemodes\Play Art.pwn(8601) : error 017: undefined symbol "PlayerPaintballing"
C:\Users\Johny_Test\Desktop\PlayArt\gamemodes\Play Art.pwn(8601) : warning 215: expression has no effect
C:\Users\Johny_Test\Desktop\PlayArt\gamemodes\Play Art.pwn(8601) : error 001: expected token: ";", but found "]"
C:\Users\Johny_Test\Desktop\PlayArt\gamemodes\Play Art.pwn(8601) : error 029: invalid expression, assumed zero
C:\Users\Johny_Test\Desktop\PlayArt\gamemodes\Play Art.pwn(8601) : fatal error 107: too many error messages on one line




AW: Error compiler pawno - Mencent - 26.07.2015

Can you send me this row? (8601)