C:\Users\Usuario\Desktop\Vortex\gamemodes\Vortex.p wn(4284 : warning 225: unreachable code C:\Users\Usuario\Desktop\Vortex\gamemodes\Vortex.p wn(42854) : warning 225: unreachable code |
CMD:obtener(playerid, params[]) { if(sscanf(params, "s[10]", params[0])) return SendClientMessage(playerid, -1, "/obtener semillas, /obtener crack"); if(strcmp("marihuana", params[0], true) == 0) { Info[playerid][pDrugPoints] = Info[playerid][pDrugPoints] -3; return SendClientMessage(playerid, COLOR_WHITE, "No tienes materia prima"); SendClientMessageEx(playerid, COLOR_LIGHTBLUE, " Acabas de comprar una bolsa de semillas de hierba de la Casa de Drogas. "); Info[playerid][pMats] += 25; return 1; } else if(strcmp("crack", params[0], true) == 0) { Info[playerid][pDrugPoints] = Info[playerid][pDrugPoints] -3; return SendClientMessage(playerid, COLOR_WHITE, "No tienes materia prima"); SendClientMessageEx(playerid, COLOR_LIGHTBLUE, " Acabas de comprar una bolsa de semillas de hierba de la Casa de Drogas. "); Info[playerid][pCrack] += 25; return 1; } return 1; }
CMD:obtener(playerid, params[]) { if(sscanf(params, "s[10]", params[0])) return SendClientMessage(playerid, -1, "/obtener semillas, /obtener crack"); if(strcmp("marihuana", params[0], true) == 0) { Info[playerid][pDrugPoints] = Info[playerid][pDrugPoints] -3; return SendClientMessage(playerid, COLOR_WHITE, "No tienes materia prima"); SendClientMessageEx(playerid, COLOR_LIGHTBLUE, " Acabas de comprar una bolsa de semillas de hierba de la Casa de Drogas. "); Info[playerid][pMats] += 25; } else if(strcmp("crack", params[0], true) == 0) { Info[playerid][pDrugPoints] = Info[playerid][pDrugPoints] -3; return SendClientMessage(playerid, COLOR_WHITE, "No tienes materia prima"); SendClientMessageEx(playerid, COLOR_LIGHTBLUE, " Acabas de comprar una bolsa de semillas de hierba de la Casa de Drogas. "); Info[playerid][pCrack] += 25; } return 1; }
Код:
CMD:obtener(playerid, params[]) { if(sscanf(params, "s[10]", params[0])) return SendClientMessage(playerid, -1, "/obtener semillas, /obtener crack"); if(strcmp("marihuana", params[0], true) == 0) { Info[playerid][pDrugPoints] = Info[playerid][pDrugPoints] -3; return SendClientMessage(playerid, COLOR_WHITE, "No tienes materia prima"); SendClientMessageEx(playerid, COLOR_LIGHTBLUE, " Acabas de comprar una bolsa de semillas de hierba de la Casa de Drogas. "); Info[playerid][pMats] += 25; } else if(strcmp("crack", params[0], true) == 0) { Info[playerid][pDrugPoints] = Info[playerid][pDrugPoints] -3; return SendClientMessage(playerid, COLOR_WHITE, "No tienes materia prima"); SendClientMessageEx(playerid, COLOR_LIGHTBLUE, " Acabas de comprar una bolsa de semillas de hierba de la Casa de Drogas. "); Info[playerid][pCrack] += 25; } return 1; } |
C:\Users\Usuario\Desktop\Vortex\gamemodes\Vortex.p wn(4284 : warning 225: unreachable code C:\Users\Usuario\Desktop\Vortex\gamemodes\Vortex.p wn(42853) : warning 225: unreachable code |
CMD:obtener(playerid, params[]) { if(sscanf(params, "s[10]", params[0])) return SendClientMessage(playerid, -1, "/obtener semillas, /obtener crack"); if(strcmp("marihuana", params[0], true) == 0) { if(Info[playerid][pDrugPoints] < 3) return SendClientMessage(playerid, COLOR_WHITE, "No tienes materia prima"); Info[playerid][pDrugPoints] = Info[playerid][pDrugPoints] -3; SendClientMessageEx(playerid, COLOR_LIGHTBLUE, " Acabas de comprar una bolsa de semillas de hierba de la Casa de Drogas. "); Info[playerid][pMats] += 25; } else if(strcmp("crack", params[0], true) == 0) { if(Info[playerid][pDrugPoints] < 3) return SendClientMessage(playerid, COLOR_WHITE, "No tienes materia prima"); Info[playerid][pDrugPoints] = Info[playerid][pDrugPoints] -3; SendClientMessageEx(playerid, COLOR_LIGHTBLUE, " Acabas de comprar una bolsa de semillas de hierba de la Casa de Drogas. "); Info[playerid][pCrack] += 25; } return 1; }
Код:
CMD:obtener(playerid, params[]) { if(sscanf(params, "s[10]", params[0])) return SendClientMessage(playerid, -1, "/obtener semillas, /obtener crack"); if(strcmp("marihuana", params[0], true) == 0) { if(Info[playerid][pDrugPoints] < 3) return SendClientMessage(playerid, COLOR_WHITE, "No tienes materia prima"); Info[playerid][pDrugPoints] = Info[playerid][pDrugPoints] -3; SendClientMessageEx(playerid, COLOR_LIGHTBLUE, " Acabas de comprar una bolsa de semillas de hierba de la Casa de Drogas. "); Info[playerid][pMats] += 25; } else if(strcmp("crack", params[0], true) == 0) { if(Info[playerid][pDrugPoints] < 3) return SendClientMessage(playerid, COLOR_WHITE, "No tienes materia prima"); Info[playerid][pDrugPoints] = Info[playerid][pDrugPoints] -3; SendClientMessageEx(playerid, COLOR_LIGHTBLUE, " Acabas de comprar una bolsa de semillas de hierba de la Casa de Drogas. "); Info[playerid][pCrack] += 25; } return 1; } |