SA-MP Forums Archive
Help with pawno errors - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with pawno errors (/showthread.php?tid=263772)



Help with pawno errors - boyan96 - 23.06.2011

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


Re: Help with pawno errors - [TS]Ricky - 23.06.2011

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


Re: Help with pawno errors - [HiC]TheKiller - 23.06.2011

It's meant to be

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


Re: Help with pawno errors - boyan96 - 23.06.2011

again have this errors


Re: Help with pawno errors - [HiC]TheKiller - 23.06.2011

Have you defined the variable speed?