13.01.2013, 08:46
Hello,
I was making a Reclass Command in my gm but i am getting these Errors <.<
And the Code is
Help please ill rep+ ^^
I was making a Reclass Command in my gm but i am getting these Errors <.<
Quote:
C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3624) : warning 217: loose indentation C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3624) : warning 217: loose indentation C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3651) : warning 217: loose indentation C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3677) : warning 217: loose indentation C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(369 ![]() C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3699) : warning 217: loose indentation C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3702) : warning 217: loose indentation C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3704) : warning 217: loose indentation C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3704) : error 029: invalid expression, assumed zero C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3704) : error 017: undefined symbol "cmd_reclasstriads" C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3704) : error 029: invalid expression, assumed zero C:\Users\Faqahat\LSSW\Server\gamemodes\LS-SW.pwn(3704) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors. |
And the Code is
Quote:
CMD:reclassgrove(playerid, params[]) { if(gTeam[playerid] != TEAM_GROVE) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); //Attach3DTextLabelToPlayer(Team[playerid],playerid,0,0,1.2); SetPlayerColor(playerid, COLOR_GREEN); GivePlayerWeapon(playerid, 5, 9999); SetPlayerSkin(playerid, 270); GameTextForPlayer(playerid, "~r~Reclassed to ~g~Grove ", 5000, 5); SendClientMessage(playerid, Green1, "{FFFFFF}You Reclassed to {6EF83C}Grove{FFFFFF}'"); GivePlayerWeapon(playerid, 24, 60); GivePlayerWeapon(playerid, 27, 50); GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 32, 300); GivePlayerWeapon(playerid, 34, 30); SetPlayerInterior(playerid, 9); SetPlayerPos(playerid,2329.1472,-1013.3688,1050.2109); } else { SendClientMessage(playerid,0xFF0000FF,"[ERROR]: You Are already {6EF83C}Grove. "); } return 1; } CMD:reclassaezatec(playerid, params[]) { if(gTeam[playerid] == TEAM_AZTECA) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerColor(playerid, COLOR_LIGHTBLUE); GivePlayerWeapon(playerid, 5, 9999); SetPlayerSkin(playerid, 116); GameTextForPlayer(playerid, "~r~Reclassed to ~g~Aezatec ", 5000, 5); SendClientMessage(playerid, Green1, "{FFFFFF}You Reclassed to '{00FFEE}Azteca{FFFFFF}'"); GivePlayerWeapon(playerid, 24, 60); GivePlayerWeapon(playerid, 27, 50); GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 32, 300); GivePlayerWeapon(playerid, 34, 30); SetPlayerInterior(playerid, 1); SetPlayerPos(playerid, 232.5189,1291.0531,1082.1406); } else { SendClientMessage(playerid,0xFF0000FF,"[ERROR]: You Are already {00FFEE}Azteca "); } return 1; } CMD:reclassvagos(playerid, params[]) { if(gTeam[playerid] == TEAM_VAGOS) { SetPlayerTeam( playerid, TEAM_VAGOS); new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerColor(playerid, COLOR_YELLOW); GivePlayerWeapon(playerid, 5, 9999); SetPlayerSkin(playerid, 109); GameTextForPlayer(playerid, "~r~Reclassed to ~y~Vagos ", 5000, 5); SendClientMessage(playerid, Green1, "{FFFFFF}You spawned as a '{F3FF02}Vagos{FFFFFF}'"); GivePlayerWeapon(playerid, 24, 60); GivePlayerWeapon(playerid, 27, 50); GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 32, 300); GivePlayerWeapon(playerid, 34, 30); //SetPlayerPos(playerid, 2630.5891,-1082.8097,69.6190); SetPlayerInterior(playerid, 12); SetPlayerPos(playerid, 2332.9854,-1138.7740,1054.3047); } else { SendClientMessage(playerid,0xFF0000FF,"[ERROR]: You Are already {F3FF02}Vagos "); } return 1; } CMD:reclassballas(playerid, params[]) { if(gTeam[playerid] == TEAM_BALLAS) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerColor(playerid, COLOR_PURPLE); GivePlayerWeapon(playerid, 5, 9999); SetPlayerSkin(playerid, 104); GameTextForPlayer(playerid, "~r~Reclassed to ~b~~h~~h~BALLA ", 5000, 5); SendClientMessage(playerid, Green1, "{FFFFFF}You Reclassed to '{F300FF}Balla{FFFFFF}'"); GivePlayerWeapon(playerid, 24, 60); GivePlayerWeapon(playerid, 27, 50); GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 32, 300); GivePlayerWeapon(playerid, 34, 30); // SetPlayerPos(playerid, 2166.2485,-1671.8427,15.0741); SetPlayerInterior(playerid, 5); SetPlayerPos(playerid, 323.4469,1131.6139,1083.882 ![]() } else { SendClientMessage(playerid,0xFF0000FF,"[ERROR]: You Are already {F300FF}Balla "); } return 1; } CMD:reclassarmy(playerid, params[]) { if(gTeam[playerid] == TEAM_ARMY) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerColor(playerid, COLOR_BROWN); GivePlayerWeapon(playerid, 5, 9999); SetPlayerSkin(playerid, 285); GameTextForPlayer(playerid, "~r~Reclassed to ~b~~h~~h~Army ", 5000, 5); SendClientMessage(playerid, Green1, "{FFFFFF}You reclassed to 'Army{FFFFFF}'"); GivePlayerWeapon(playerid, 24, 60); GivePlayerWeapon(playerid, 27, 50); GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 32, 300); GivePlayerWeapon(playerid, 34, 30); SetPlayerInterior(playerid, ![]() // SetPlayerPos(playerid, 1125.5177,-2039.0251,69.8800); SetPlayerPos(playerid, 2807.6106,-1166.0449,1025.5703); else { SendClientMessage(playerid,0xFF0000FF,"[ERROR]: You Are already {6EF83C}Army. "); } return 1; } CMD:reclasstriads(playerid, params[]) { if(gTeam[playerid] == TEAM_TRIADS) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerColor(playerid, RED); GivePlayerWeapon(playerid, 5, 9999); GameTextForPlayer(playerid, "~r~Reclassed to ~b~~h~~h~Triad ", 5000, 5); SendClientMessage(playerid, Green1, "{FFFFFF}You spawned as a '{F81414}Triad{FFFFFF}'"); GivePlayerWeapon(playerid, 24, 60); GivePlayerWeapon(playerid, 27, 50); GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 32, 300); GivePlayerWeapon(playerid, 34, 30); SetPlayerInterior(playerid, 15); SetPlayerPos(playerid, 289.3146,1484.5355,1080.257 ![]() } else { SendClientMessage(playerid,0xFF0000FF,"[ERROR]: You Are already {6EF83C}Triad "); } return 1; } CMD:reclassdanang(playerid, params[]) { if(gTeam[playerid] ==TEAM_DANANG ) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerColor(playerid, COLOR_OLIVE); GivePlayerWeapon(playerid, 5, 9999); SetPlayerSkin(playerid, 121); GameTextForPlayer(playerid, "~r~Reclassed to ~b~~h~~h~danang ", 5000, 5); SendClientMessage(playerid, Green1, "{FFFFFF}You Reclassed to '{AFE7FF}DANANG{FFFFFF}'"); GivePlayerWeapon(playerid, 24, 60); GivePlayerWeapon(playerid, 27, 50); GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 32, 300); SetPlayerInterior(playerid, 1); SetPlayerPos(playerid,-2159.3628,642.4583,1057.593 ![]() else { SendClientMessage(playerid,0xFF0000FF,"[ERROR]: You Are already {AFE7FF}DANAN "); } return 1; } CMD:reclassmafia(playerid, params[]) { if(gTeam[playerid] == TEAM_MAFIA) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerColor(playerid, COLOR_MAROON); GivePlayerWeapon(playerid, 5, 9999); SetPlayerSkin(playerid, 126); GameTextForPlayer(playerid, "~r~Reclassed to ~b~~h~~h~Mafia ", 5000, 5); SendClientMessage(playerid, Green1, "{FFFFFF}You reclassed to'{A90202}MAFIA{FFFFFF}'"); GivePlayerWeapon(playerid, 24, 60); GivePlayerWeapon(playerid, 27, 50); GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 32, 300); GivePlayerWeapon(playerid, 34, 30); SetPlayerInterior(playerid, 7); // SetPlayerPos(playerid, 691.2147,-1275.9911,13.5605); SetPlayerPos(playerid, 248.2913,1037.4937,1084.7332); } { SendClientMessage(playerid,0xFF0000FF,"[ERROR]: You Are already {A90202}MAFIA. "); } return 1; } CMD:reclasspolice(playerid, params[]) { if(gTeam[playerid] == TEAM_POLICE) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerColor(playerid, COLOR_BLUE); GivePlayerWeapon(playerid, 5, 9999); SetPlayerSkin(playerid, 282); GameTextForPlayer(playerid, "~r~Reclassed to ~b~~h~~h~Police ", 5000, 5); SendClientMessage(playerid, Green1, "{FFFFFF}You Reclassed to '{F300FF}Police{FFFFFF}'") GivePlayerWeapon(playerid, 24, 60); GivePlayerWeapon(playerid, 27, 50); GivePlayerWeapon(playerid, 31, 200); GivePlayerWeapon(playerid, 32, 300); GivePlayerWeapon(playerid, 34, 30); // SetPlayerPos(playerid, 1553.6409,-1675.5615,16.1953); SetPlayerInterior(playerid, 6); SetPlayerPos(playerid, 256.5771,67.6899,1003.6406); } else { SendClientMessage(playerid,0xFF0000FF,"[ERROR]: You Are already {F300FF}Police "); } return 1; } |