SA-MP Forums Archive
SetupPlayerForClassSelection error compiling - 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: SetupPlayerForClassSelection error compiling (/showthread.php?tid=102800)



SetupPlayerForClassSelection error compiling - Angelo94 - 17.10.2009

302 public SetupPlayerForClassSelection(playerid)
303 {
304 SetPlayerInterior(playerid,0);
305 SetPlayerPos(playerid,105,444.3264,-201.6548,24.5760);
306 SetPlayerCameraPos(playerid,105,444.3264,-201.6548,24.5760);
307 SetPlayerCameraLookAt(playerid,105,444.3264,-201.6548,24.5760);
308 SetPlayerFacingAngle(playerid,180,0);
309 }

i made this then i was compiling but

C:\Users\Angelo\Desktop\Gta San Andreas\gamemodes\frocio.pwn(305) : warning 202: number of arguments does not match definition
C:\Users\Angelo\Desktop\Gta San Andreas\gamemodes\frocio.pwn(306) : warning 202: number of arguments does not match definition
C:\Users\Angelo\Desktop\Gta San Andreas\gamemodes\frocio.pwn(307) : warning 202: number of arguments does not match definition
C:\Users\Angelo\Desktop\Gta San Andreas\gamemodes\frocio.pwn(30 : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


help?


Re: SetupPlayerForClassSelection error compiling - [XST]O_x - 17.10.2009

EDIT:Ow nvm


Re: SetupPlayerForClassSelection error compiling - Angelo94 - 17.10.2009

ehm....more details? please


Re: SetupPlayerForClassSelection error compiling - dice7 - 17.10.2009

SetPlayerFacingAngle(playerid,180,0);
should be
SetPlayerFacingAngle(playerid,180.0);

same with other lines which error


Re: SetupPlayerForClassSelection error compiling - [XST]O_x - 17.10.2009

Oh here:
pawn Код:
SetPlayerPos(playerid,105,444.3264,-201.6548,24.5760);
replace with:
pawn Код:
SetPlayerPos(playerid,105.444.3264,-201.6548,24.5760);
pawn Код:
SetPlayerCameraPos(playerid,105,444.3264,-201.6548,24.5760);
with:
pawn Код:
SetPlayerCameraPos(playerid,105.444.3264,-201.6548,24.5760);
pawn Код:
SetPlayerCameraLookAt(playerid,105,444.3264,-201.6548,24.5760);
with
pawn Код:
SetPlayerCameraLookAt(playerid,105.444.3264,-201.6548,24.5760);
pawn Код:
SetPlayerFacingAngle(playerid,180,0);
with
pawn Код:
SetPlayerFacingAngle(playerid,180.0);



Re: SetupPlayerForClassSelection error compiling - Angelo94 - 17.10.2009

thanks i fixed it but now it appears this

C:\Users\Angelo\Desktop\Gta San Andreas\gamemodes\frocio.pwn(305) : error 001: expected token: ",", but found "."
C:\Users\Angelo\Desktop\Gta San Andreas\gamemodes\frocio.pwn(305) : error 029: invalid expression, assumed zero
C:\Users\Angelo\Desktop\Gta San Andreas\gamemodes\frocio.pwn(305) : warning 215: expression has no effect
C:\Users\Angelo\Desktop\Gta San Andreas\gamemodes\frocio.pwn(305) : warning 215: expression has no effect
C:\Users\Angelo\Desktop\Gta San Andreas\gamemodes\frocio.pwn(305) : warning 215: expression has no effect
C:\Users\Angelo\Desktop\Gta San Andreas\gamemodes\frocio.pwn(305) : error 001: expected token: ";", but found ")"
C:\Users\Angelo\Desktop\Gta San Andreas\gamemodes\frocio.pwn(305) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


Re: SetupPlayerForClassSelection error compiling - dice7 - 17.10.2009

Omg don't tell me you replaced all ',' for '.'
[size=40px],[/size] = for seperating parameters in functions
[size=40px].[/size] = the delimiter in floats