Loose itention i try anything. -
Mustafa6155 - 01.12.2012
Hello this is my llines.
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0:
{
gTeam[playerid] = TEAM_SWAT;
GameTextForPlayer(playerid, "~b~SWAT", 5000, 5);
SetPlayerPos(playerid, 1522.6503,-806.6635,72.1700);
SetPlayerFacingAngle(playerid, 4018);
SetPlayerCameraPos(playerid, 1514.0861,-806.9355,72.0768);
SetPlayerCameraLookAt(playerid, 1522.6503,-806.6635,72.1700);
}
case 1:
{
gTeam[playerid] = TEAM_ARMY;
GameTextForPlayer(playerid, "~g~ARMY", 5000, 5);
SetPlayerPos(playerid, 1279.3276,-778.4965,95.9663);
SetPlayerFacingAngle(playerid,8298);
SetPlayerCameraPos(playerid,1266.1062,-778.3137,95.9665);
SetPlayerCameraLookAt(playerid,1279.3276,-778.4965,95.9663);
}
}
SetPlayerToTeamColour(playerid); // 971
{
}
return 1; //975
}
What to do?
to fix this errors?
Код:
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\BF.pwn(971) : warning 217: loose indentation
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\BF.pwn(975) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
If u can help me use [...PAWN] then [.../PAWN] With no ....
Re: Loose itention i try anything. -
Mustafa6155 - 01.12.2012
SomeBody?
Re: Loose itention i try anything. -
Buzzbomb - 01.12.2012
Um look at the end where ur return 1; is See the one facing { > Face it This } <
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0:
{
gTeam[playerid] = TEAM_SWAT;
GameTextForPlayer(playerid, "~b~SWAT", 5000, 5);
SetPlayerPos(playerid, 1522.6503,-806.6635,72.1700);
SetPlayerFacingAngle(playerid, 4018);
SetPlayerCameraPos(playerid, 1514.0861,-806.9355,72.0768);
SetPlayerCameraLookAt(playerid, 1522.6503,-806.6635,72.1700);
}
case 1:
{
gTeam[playerid] = TEAM_ARMY;
GameTextForPlayer(playerid, "~g~ARMY", 5000, 5);
SetPlayerPos(playerid, 1279.3276,-778.4965,95.9663);
SetPlayerFacingAngle(playerid,8298);
SetPlayerCameraPos(playerid,1266.1062,-778.3137,95.9665);
SetPlayerCameraLookAt(playerid,1279.3276,-778.4965,95.9663);
}
SetPlayerToTeamColour(playerid); // 971
}
return 1; //975
}
Might had one tomany closing brackets
Re: Loose itention i try anything. -
Konstantinos - 01.12.2012
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0:
{
gTeam[playerid] = TEAM_SWAT;
GameTextForPlayer(playerid, "~b~SWAT", 5000, 5);
SetPlayerPos(playerid, 1522.6503,-806.6635,72.1700);
SetPlayerFacingAngle(playerid, 4018);
SetPlayerCameraPos(playerid, 1514.0861,-806.9355,72.0768);
SetPlayerCameraLookAt(playerid, 1522.6503,-806.6635,72.1700);
}
case 1:
{
gTeam[playerid] = TEAM_ARMY;
GameTextForPlayer(playerid, "~g~ARMY", 5000, 5);
SetPlayerPos(playerid, 1279.3276,-778.4965,95.9663);
SetPlayerFacingAngle(playerid,8298);
SetPlayerCameraPos(playerid,1266.1062,-778.3137,95.9665);
SetPlayerCameraLookAt(playerid,1279.3276,-778.4965,95.9663);
}
}
SetPlayerToTeamColour(playerid); // 971
return 1; //975
}
Re: Loose itention i try anything. -
Buzzbomb - 01.12.2012
Or Like he said heh
Re: Loose itention i try anything. -
Mustafa6155 - 01.12.2012
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\BF.pwn(96
![Cool](images/smilies/cool.gif)
: error 002: only a single statement (or expression) can follow each "case"
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\BF.pwn(96
![Cool](images/smilies/cool.gif)
: warning 215: expression has no effect
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\BF.pwn(970) : error 010: invalid function or declaration
C:\Users\Mustafa\Desktop\SAmp SRV\ForYou\gamemodes\BF.pwn(1589) : warning 203: symbol is never used: "SetPlayerToTeamColour"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Re: Loose itention i try anything. -
goviscrap - 01.12.2012
Go with your Code you had in begining and type On top of your script under your #include
This: #pragma tabsize 0
And compile and your Warnings is gone
Re: Loose itention i try anything. -
Mustafa6155 - 01.12.2012
Thanks Dwane..