Help with pawno errors
#1

public OnGameModeInit()
}

speed = CreatePickup(1318,23,1411.9476,-1700.0509,13.5395);
return 1;
}

i have this errors

C:\Users\User\Downloads\Untitled.pwn(11) : error 029: invalid expression, assumed zero
C:\Users\User\Downloads\Untitled.pwn(11 -- 13) : warning 215: expression has no effect
C:\Users\User\Downloads\Untitled.pwn(13) : error 001: expected token: ";", but found "-identifier-"
C:\Users\User\Downloads\Untitled.pwn(14) : error 010: invalid function or declaration
C:\Users\User\Downloads\Untitled.pwn(140) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Reply
#2

Quote:
Originally Posted by boyan96
Посмотреть сообщение
public OnGameModeInit()
}

speed = CreatePickup(1318,23,1411.9476,-1700.0509,13.5395);
return 1;
}

i have this errors

C:\Users\User\Downloads\Untitled.pwn(11) : error 029: invalid expression, assumed zero
C:\Users\User\Downloads\Untitled.pwn(11 -- 13) : warning 215: expression has no effect
C:\Users\User\Downloads\Untitled.pwn(13) : error 001: expected token: ";", but found "-identifier-"
C:\Users\User\Downloads\Untitled.pwn(14) : error 010: invalid function or declaration
C:\Users\User\Downloads\Untitled.pwn(140) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
:S :S CreatePickup? :S :S

https://sampwiki.blast.hk/wiki/Function:AddStaticPickup

AddStaticPickup use that
Reply
#3

It's meant to be

pawn Код:
public OnGameModeInit()
{
    speed = CreatePickup(1318, 23,1411.9476, -1700.0509, 13.5395, -1);
    return 1;
}
Try that .
Reply
#4

again have this errors
Reply
#5

Have you defined the variable speed?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)