Error compiler pawno
#1

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
Reply
#2

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

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?
Reply
#4

Hello!

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


@bimaxx999:
Can you send us more code?
Reply
#5

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 )

Reply
#6

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.
Reply
#7

NO'T WORK .. INVALID EXPRESION HELP ME PLEASE
Reply
#8

Can you send me more code?

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

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

Reply
#10

Can you send me this row? (8601)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)