Sziasztok! Viszaforditottam a Clanbattle modot pwn-jé mert csak amx-et tett fel a készitõ! Ezzel megis lettem de valamiért hibákat ir:
D:\\Documents and Settings\\Easy0101\\Asztal\\scriptek\\Easy DeAMX\\ClanBattle.pwn(129) : warning 235: public function lacks forward declaration (symbol \"SetupPlayerForClassSelection\")
D:\\Documents and Settings\\Easy0101\\Asztal\\scriptek\\Easy DeAMX\\ClanBattle.pwn(262) : error 002: only a single statement (or expression) can follow each \"case\"
D:\\Documents and Settings\\Easy0101\\Asztal\\scriptek\\Easy DeAMX\\ClanBattle.pwn(262) : warning 215: expression has no effect
D:\\Documents and Settings\\Easy0101\\Asztal\\scriptek\\Easy DeAMX\\ClanBattle.pwn(267) : warning 217: loose indentation
D:\\Documents and Settings\\Easy0101\\Asztal\\scriptek\\Easy DeAMX\\ClanBattle.pwn(267) : error 014: invalid statement; not in switch
D:\\Documents and Settings\\Easy0101\\Asztal\\scriptek\\Easy DeAMX\\ClanBattle.pwn(267) : warning 215: expression has no effect
D:\\Documents and Settings\\Easy0101\\Asztal\\scriptek\\Easy DeAMX\\ClanBattle.pwn(267) : error 001: expected token: \";\", but found \":\"
D:\\Documents and Settings\\Easy0101\\Asztal\\scriptek\\Easy DeAMX\\ClanBattle.pwn(267) : error 029: invalid expression, assumed zero
D:\\Documents and Settings\\Easy0101\\Asztal\\scriptek\\Easy DeAMX\\ClanBattle.pwn(267) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Ittvannak a sorok:
public SetupPlayerForClassSelection(playerid)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1410.583, 2109.2653, 12.0156);
SetPlayerFacingAngle(playerid, 90.0);
SetPlayerCameraPos(playerid, 1411.2827, 2114.4436, 12.0156);
SetPlayerCameraLookAt(playerid, 1410.583, 2109.2653, 12.0156);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
if(valami10 == 1)
{
if(!valtozo[playerid])
{
SetPlayerSkin(playerid, 299);
GameTextForPlayer(playerid, fs, 1000, 3);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2789.9348, -2418.5481, 13.633);
SetPlayerFacingAngle(playerid, 87.0);
SetPlayerCameraPos(playerid, 2783.6499, -2418.1187, 13.6346);
SetPlayerCameraLookAt(playerid, 2789.9348, -2418.5481, 13.633);
}
else if(valtozo[playerid] == 1)
{
SetPlayerSkin(playerid, 105);
GameTextForPlayer(playerid, xtreme, 1000, 3);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2640.1645, -2502.8941, 13.4921);
SetPlayerFacingAngle(playerid, 278.0);
SetPlayerCameraPos(playerid, 2647.3854, -2503.337, 13.4921);
SetPlayerCameraLookAt(playerid, 2640.1645, -2502.8941, 13.4921);
}
else if(valtozo[playerid] == 2)
{
SetPlayerSkin(playerid, 21);
GameTextForPlayer(playerid, \"~g~Ref\", 1000, 3);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2731.3305, -2451.0274, 17.5937);
SetPlayerFacingAngle(playerid, 277.0);
SetPlayerCameraPos(playerid, 2734.3847, -2450.4029, 17.5937);
SetPlayerCameraLookAt(playerid, 2731.3305, -2451.0274, 17.5937);
}
return 1;
}
if(!valami10)
{
funkcio(playerid, classid);
cucc[playerid] = classid;
SetupPlayerForClassSelection(playerid);
switch(classid)
{
case 0:
GameTextForPlayer(playerid, fs, 1000, 3);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2789.9348, -2418.5481, 13.633);
SetPlayerFacingAngle(playerid, 87.0);
SetPlayerCameraPos(playerid, 2783.6499, -2418.1187, 13.6346);
SetPlayerCameraLookAt(playerid, 2789.9348, -2418.5481, 13.633);
case 1:
GameTextForPlayer(playerid, xtreme, 1000, 3);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2640.1645, -2502.8941, 13.4921);
SetPlayerFacingAngle(playerid, 278.0);
SetPlayerCameraPos(playerid, 2647.3854, -2503.337, 13.4921);
SetPlayerCameraLookAt(playerid, 2640.1645, -2502.8941, 13.4921);
case 2:
GameTextForPlayer(playerid, \"~g~Ref\", 1000, 3);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2731.3305, -2451.0274, 17.5937);
SetPlayerFacingAngle(playerid, 277.0);
SetPlayerCameraPos(playerid, 2734.3847, -2450.4029, 17.5937);
SetPlayerCameraLookAt(playerid, 2731.3305, -2451.0274, 17.5937);
}
}
return 1;
}