SetupPlayerForClassSelection error compiling
#1

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

EDIT:Ow nvm
Reply
#3

ehm....more details? please
Reply
#4

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

same with other lines which error
Reply
#5

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);
Reply
#6

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)