[Help]Some warning
#1

Hi everybody yesterday i'm back into samp and back into script but now i need help because I start to make pawn script but I was a black throne help me please

Warnings :

Код:
C:\Users\mickael\Desktop\Serveur SAMP\gamemodes\truckingfr.pwn(120) : warning 202: number of arguments does not match definition
C:\Users\mickael\Desktop\Serveur SAMP\gamemodes\truckingfr.pwn(121) : warning 202: number of arguments does not match definition
C:\Users\mickael\Desktop\Serveur SAMP\gamemodes\truckingfr.pwn(123) : warning 213: tag mismatch
Code of Warnings :

Код:
public OnPlayerRequestClass(playerid, classid)
{
    // spawn premier QG
	SetPlayerPos(playerid,124,784.5793,-1349.5786,13.5409);
	SetPlayerCameraPos(playerid,124,781.1296,-1356.8960,13.5367);
	SetPlayerFacingAngle(playerid,128.7462);
	SetPlayerCameraLookAt(playerid,124,784.5793,-1349.5786,13.5409);
    // fin spawn premier QG
	return 1;
}
The spawns cord :

Код:
AddPlayerClass(124,784.5793,-1349.5786,13.5409,83.7942,0,0,0,0,0,0); // SpawnQG
AddPlayerClass(124,778.5269,-1335.3235,13.5386,90.5193,0,0,0,0,0,0); // PlayerCameraLook
AddPlayerClass(124,781.1296,-1356.8960,13.5367,128.7462,0,0,0,0,0,0); // CameraLook 2
Reply
#2

Hello wb and selplayerpos parameter is wrong the correct param is
PHP код:
SetPlayerPos(playeridFloat:xFloat:yFloat:z
Reply
#3

So i'm very ****(censored by me) ok all warnings fixed thanks to you
Reply
#4

PHP код:
    SetPlayerPos(playerid784.5793,-1349.5786,13.5409);
    
SetPlayerCameraPos(playerid781.1296,-1356.8960,13.5367);
    
SetPlayerCameraLookAt(playerid784.5793,-1349.5786,13.5409); 
You made "," instead of "."
And you don't have to put the skin ID (124)
Reply
#5

Код:
SetPlayerPos(playerid, 784.5793, -1349.5786, 13.5409);
SetPlayerCameraPos(playerid, 778.5269, -1335.3235, 13.5386);
SetPlayerCameraLookAt(playerid, 781.1296, -1356.8960, 13.5367);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)