SA-MP Forums Archive
Pls help me My mind is f***ing up... - 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: Pls help me My mind is f***ing up... (/showthread.php?tid=273275)



Pls help me My mind is f***ing up... - trapped1 - 01.08.2011

Код:
error 001: expected token: ";", but found "-identifier-"
warning 202: number of arguments does not match definition
Код:

SetPlayerTeamFromClass(playerid, classid);
SetPlayerPos(playerid, 2045.2092,-1115.9816,26.3617,357.7352);
This is the biggest prob ever .... omg.. I'm just thinking wtf is wrong. looking for reason why its down. and why I got this errors.. (Sorry for my mistakes writing in text.. I'm just wake up almost 72 h... )

Thank you for your help and time


Re: Pls help me My mind is f***ing up... - Onyx - 01.08.2011

Could we see code, related with this;

pawn Код:
SetPlayerTeamFromClass(playerid, classid);
This;

pawn Код:
SetPlayerPos(playerid, 2045.2092,-1115.9816,26.3617,357.7352);
Replace with this;

pawn Код:
SetPlayerPos(playerid, 2045.2092, -1115.9816, 26.3617);



Re: Pls help me My mind is f***ing up... - trapped1 - 01.08.2011

Quote:

if(gTeam[playerid] == TEAM_Bloodz)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2045.2092,-1115.9816,26.3617,357.7352);
return 1;
}

The all of the code is here... but I wanted to show in witch line...

So the prob is some where else

And this is bottom of script I just need that the script can read form public

OnPlayerRequestClass(playerid, classid)

Quote:

stock SetPlayerTeamFromClass(playerid, classid)
{
if(classid == 0)
{
gTeam[playerid] = TEAM_Bloodz;
return 1;
}

And thank you for your answer and your time


Re: Pls help me My mind is f***ing up... - trapped1 - 01.08.2011

Please some one help me out.. with this..


Re: Pls help me My mind is f***ing up... - iPLEOMAX - 01.08.2011

This line is wrong: SetPlayerPos(playerid, 2045.2092,-1115.9816,26.3617,357.7352);

Use it like this:
pawn Код:
//                     x           y           z
SetPlayerPos(playerid, 2045.2092, -1115.9816, 26.3617);
SetPlayerFacingAngle(playerid, 357.7352);



Re: Pls help me My mind is f***ing up... - trapped1 - 01.08.2011

thank you mate


Re: Pls help me My mind is f***ing up... - trapped1 - 01.08.2011

EDITED!:
Thank you all for your time and help... All ok now :P love you guys :P