17.03.2013, 17:04
Estou a mais de 3 horas tentando passar esse codigo pra strcmp, ja vi varios tutoriais mais nao entendi.
alguem olha se consegue ver o erro e me ajuda ? plz
alguem olha se consegue ver o erro e me ajuda ? plz
pawn Код:
CMD:entrarorg(playerid, params[])
{
if(PlayerInfo[playerid][pSocio] < 3)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Esse comando so pode ser usado por jogadores Socios-Socio");
return 1;
}
if(isnull(params))
{
SendClientMessage(playerid, COLOR_WHITE, "{7FFFD4}|________________|Vip-Socio|________________|");
SendClientMessage(playerid, COLOR_WHITE, "{00FFFF}Digite: /entrarorg [numero de 1 a 26]");
return 1;
}
if(PlayerInfo[playerid][pMembro] != 0 || PlayerInfo[playerid][pLider] != 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк precisa /pedircontas para trocar de organizaзao");
return 1;
}
if(WantedPoints[playerid] != 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo pode usar este Comando com nivel de Procurado");
return 1;
}
if(PlayerInfo[playerid][pEmprego] > 2)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк possui uma profissao /sairdoemprego.");
return 1;
}
if(PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo pode usar este comando preso !");
return 1;
}
if(!strcmp(params, "1", true))
{
PlayerInfo[playerid][pCargo] = 4;// o numero 4 aki й o cargo
PlayerInfo[playerid][pMembro] = 1;// o 1 akie й o id da org
ConviteInfoOrg(PlayerName(playerid), 1, 4);
SetPlayerSkin(playerid, 280);//280 й a skin que ele vai ter na org
PlayerInfo[playerid][pSkin] = 280;//aki coloca o mesmo numero que colocou acima
SetPlayerSpawn(playerid);
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao POLICIA MILITAR !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
if(OnDuty[playerid] == 1) { SetPlayerColor(playerid, COR_PM); }
}
else if(!strcmp(params, "2", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 2;
ConviteInfoOrg(PlayerName(playerid), 2, 4);
SetPlayerSkin(playerid, 285);
PlayerInfo[playerid][pSkin] = 285;
SetPlayerSpawn(playerid);
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao B.O.P.E !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
if(OnDuty[playerid] == 1) { SetPlayerColor(playerid, COR_BOPE); }
}
else if(!strcmp(params, "3", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 3;
ConviteInfoOrg(PlayerName(playerid), 3, 4);
SetPlayerSkin(playerid, 287);
PlayerInfo[playerid][pSkin] = 287;
SetPlayerSpawn(playerid);
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao EXERCITO !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
if(OnDuty[playerid] == 1) { SetPlayerColor(playerid, COR_EXE); }
}
else if(!strcmp(params, "4", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 4;
ConviteInfoOrg(PlayerName(playerid), 4, 4);
SetPlayerSkin(playerid, 275);
PlayerInfo[playerid][pSkin] = 275;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 4) { SetPlayerColor(playerid, COR_SAMU); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao S.A.M.U !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "5", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 5;
ConviteInfoOrg(PlayerName(playerid), 5, 4);
SetPlayerSkin(playerid, 115);
PlayerInfo[playerid][pSkin] = 115;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 5) { SetPlayerColor(playerid, COR_AZTECAS); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao LOS AZTECAS !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "6", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 6;
ConviteInfoOrg(PlayerName(playerid), 6, 4);
SetPlayerSkin(playerid, 122);
PlayerInfo[playerid][pSkin] = 122;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 6) { SetPlayerColor(playerid, COR_TAL); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao TALIBANS !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "7", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 7;
ConviteInfoOrg(PlayerName(playerid), 7, 4);
SetPlayerSkin(playerid, 183);
PlayerInfo[playerid][pSkin] = 183;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 7) { SetPlayerColor(playerid, COR_PRE); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao do PREFEITO !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "8", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 8;
ConviteInfoOrg(PlayerName(playerid), 8, 4);
SetPlayerSkin(playerid, 165);
PlayerInfo[playerid][pSkin] = 165;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 8) { SetPlayerColor(playerid, COR_HITMAN); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao HITMANS !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "9", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 9;
ConviteInfoOrg(PlayerName(playerid), 9, 4);
SetPlayerSkin(playerid, 147);
PlayerInfo[playerid][pSkin] = 147;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 9) { SetPlayerColor(playerid, COR_REP); }
format(STR, sizeof(STR), "Socio [%s] entro para a Emissora REDE GLOBO !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "10", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 10;
ConviteInfoOrg(PlayerName(playerid), 10, 4);
SetPlayerSkin(playerid, 255);
PlayerInfo[playerid][pSkin] = 255;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 10) { SetPlayerColor(playerid, COR_TAXI); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao TAXISTAS !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "11", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 11;
ConviteInfoOrg(PlayerName(playerid), 11, 4);
SetPlayerSkin(playerid, 286);
PlayerInfo[playerid][pSkin] = 286;
SetPlayerSpawn(playerid);
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao POLICIA FEDERAL !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
if(OnDuty[playerid] == 1) { SetPlayerColor(playerid, COR_PF); }
}
else if(!strcmp(params, "12", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 12;
ConviteInfoOrg(PlayerName(playerid), 12, 4);
SetPlayerSkin(playerid, 111);
PlayerInfo[playerid][pSkin] = 111;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 12) { SetPlayerColor(playerid, COR_COSA); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao MAFIA COSA NOSTRA !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "13", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 13;
ConviteInfoOrg(PlayerName(playerid), 13, 4);
SetPlayerSkin(playerid, 203);
PlayerInfo[playerid][pSkin] = 203;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 13) { SetPlayerColor(playerid, COR_YAK); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao MAFIA YAKUZA !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "14", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 14;
ConviteInfoOrg(PlayerName(playerid), 14, 4);
SetPlayerSkin(playerid, 269);
PlayerInfo[playerid][pSkin] = 269;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 14) { SetPlayerColor(playerid, COR_GRO); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao GROOV STREET !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "15", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 15;
ConviteInfoOrg(PlayerName(playerid), 15, 4);
SetPlayerSkin(playerid, 30);
PlayerInfo[playerid][pSkin] = 30;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 15) { SetPlayerColor(playerid, COR_AL); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao AL'QAEDA !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "16", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 16;
ConviteInfoOrg(PlayerName(playerid), 16, 4);
SetPlayerSkin(playerid, 186);
PlayerInfo[playerid][pSkin] = 186;
SetPlayerSpawn(playerid);
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao POLICIA CIVНL !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
if(OnDuty[playerid] == 1) { SetPlayerColor(playerid, COR_PC); }
}
else if(!strcmp(params, "17", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 17;
ConviteInfoOrg(PlayerName(playerid), 17, 4);
SetPlayerSkin(playerid, 103);
PlayerInfo[playerid][pSkin] = 103;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 17) { SetPlayerColor(playerid, COR_BALLAS); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao BALLAS !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "18", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 18;
ConviteInfoOrg(PlayerName(playerid), 18, 4);
SetPlayerSkin(playerid, 110);
PlayerInfo[playerid][pSkin] = 110;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 18) { SetPlayerColor(playerid, COR_VAGOS); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao LOS VAGOS !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "19", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 19;
ConviteInfoOrg(PlayerName(playerid), 19, 4);
SetPlayerSkin(playerid, 19);
PlayerInfo[playerid][pSkin] = 19;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 19) { SetPlayerColor(playerid, COR_CVRL); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao COMANDO VERMELHO !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "20", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 20;
ConviteInfoOrg(PlayerName(playerid), 20, 4);
SetPlayerSkin(playerid, 247);
PlayerInfo[playerid][pSkin] = 247;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 20) { SetPlayerColor(playerid, COR_SONS); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao SONS OF ANARCHY !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "21", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 21;
ConviteInfoOrg(PlayerName(playerid), 21, 4);
SetPlayerSkin(playerid, 101);
PlayerInfo[playerid][pSkin] = 101;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 21) { SetPlayerColor(playerid, COR_DRIFTERS); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao DRIFTERS !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "22", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 22;
ConviteInfoOrg(PlayerName(playerid), 22, 4);
SetPlayerSkin(playerid, 277);
PlayerInfo[playerid][pSkin] = 277;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 22) { SetPlayerColor(playerid, COR_TRIADS); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao TRIADS !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "23", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 23;
ConviteInfoOrg(PlayerName(playerid), 23, 4);
SetPlayerSkin(playerid, 249);
PlayerInfo[playerid][pSkin] = 249;
SetPlayerSpawn(playerid);
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao F.A.R.C !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
if(OnDuty[playerid] == 1) { SetPlayerColor(playerid, COR_FARC); }
}
else if(!strcmp(params, "24", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 24;
ConviteInfoOrg(PlayerName(playerid), 24, 4);
SetPlayerSkin(playerid, 264);
PlayerInfo[playerid][pSkin] = 264;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 24) { SetPlayerColor(playerid, COR_CLOW); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao CLOW !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "25", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 25;
ConviteInfoOrg(PlayerName(playerid), 25, 4);
SetPlayerSkin(playerid, 50);
PlayerInfo[playerid][pSkin] = 50;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 25) { SetPlayerColor(playerid, COR_MECANICO); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao MECANICOS !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else if(!strcmp(params, "26", true))
{
PlayerInfo[playerid][pCargo] = 4;
PlayerInfo[playerid][pMembro] = 26;
ConviteInfoOrg(PlayerName(playerid), 26, 4);
SetPlayerSkin(playerid, 285);
PlayerInfo[playerid][pSkin] = 285;
SetPlayerSpawn(playerid);
if(PlayerInfo[playerid][pMembro] == 26) { SetPlayerColor(playerid, COR_INTERPOL); }
format(STR, sizeof(STR), "Socio [%s] entro para a Organizaзao INTERPOL POLICE !", PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTBLUE, STR);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nъmeros Invalidos !");
return 1;
}
return 1;
}