21.08.2017, 16:16
Estuve creando un dialog y me saltan errores de otras funciones que no tienen nada que ver con lo que hice.
Estos son los errores:
Код:
if(dialogid == 30) //Mercado negro { if(!response){return 1;} new stringg[128]; switch(listitem) { case 0: //Telefono robado { new objeto = 68; if(GetPlayerMoney(playerid) < 300){SendClientMessage(playerid, Rojo, "* No tienes suficiente dinero."); return 1;} if(PlayerInfo[playerid][pManoDer] != 0 && PlayerInfo[playerid][pManoIzq] != 0){SendClientMessage(playerid, Rojo, "* Tienes ambas manos ocupadas."); return 1;} if(PlayerInfo[playerid][pManoDer] == 0){PonerObjeto(playerid, 1, objeto); PlayerInfo[playerid][pManoDer] = objeto, PlayerInfo[playerid][pManoDerCant] = ObjetoInfo[objeto][Capacidad];} else if(PlayerInfo[playerid][pManoIzq] == 0){PonerObjeto(playerid, 2, objeto); PlayerInfo[playerid][pManoIzq] = objeto, PlayerInfo[playerid][pManoIzqCant] = ObjetoInfo[objeto][Capacidad];} format(stringg, sizeof(stringg), "Has comprado un %s robado por 300$.", ObjetoInfo[objeto][NombreObjeto]); SendClientMessage(playerid, Verde, stringg); GivePlayerMoneyAC(playerid, -300); new randphone = 100000 + random(899999); //Crea nъmero de telйfono entre el 100000 y el 999999 PlayerInfo[playerid][pTelefono] = randphone; SendClientMessage(playerid, Blanco, "El nъmero del telйfono es: %d", randphone); } case 1: // Cuchillo { if(PlayerInfo[playerid][pNivel] < 2){SendClientMessage(playerid, Rojo, "* Debes ser nivel 2 para comprar este objeto."); return 1;} new objeto = 4; if(GetPlayerMoney(playerid) < 500){SendClientMessage(playerid, Rojo, "* No tienes suficiente dinero."); return 1;} if(PlayerInfo[playerid][pManoDer] != 0 && PlayerInfo[playerid][pManoIzq] != 0){SendClientMessage(playerid, Rojo, "* Tienes ambas manos ocupadas."); return 1;} if(PlayerInfo[playerid][pManoDer] == 0){PonerObjeto(playerid, 1, objeto); PlayerInfo[playerid][pManoDer] = objeto, GivePlayerWeapon(playerid, ObjetoInfo[objeto][IDArma], ObjetoInfo[objeto][Capacidad]), PlayerInfo[playerid][pManoDerCant] = ObjetoInfo[objeto][Capacidad];} else if(PlayerInfo[playerid][pManoIzq] == 0){PonerObjeto(playerid, 2, objeto); PlayerInfo[playerid][pManoIzq] = objeto, PlayerInfo[playerid][pManoIzqCant] = ObjetoInfo[objeto][Capacidad];} format(stringg, sizeof(stringg), "Has comprado %s por 500$.", ObjetoInfo[objeto][NombreObjeto]); SendClientMessage(playerid, Verde, stringg); GivePlayerMoneyAC(playerid, -500); } case 2: //Mбscara { if(PlayerInfo[playerid][pNivel] < 2){SendClientMessage(playerid, Rojo, "* Debes ser nivel 2 para comprar este objeto."); return 1;} if(PlayerInfo[playerid][pMascara] > 0){SendClientMessage(playerid, Rojo, "* Ya tienes una mбscara."); return 1;} if(GetPlayerMoney(playerid) < 750){SendClientMessage(playerid, Rojo, "* No tienes suficiente dinero."); return 1;} else if(PlayerInfo[playerid][pMascara] == 0){PlayerInfo[playerid][pMascara] = 1;} format(stringg, sizeof(stringg), "Has comprado una mбscara por 750$."); SendClientMessage(playerid, Verde, stringg); GivePlayerMoneyAC(playerid, -750); } case 3: //Licencia de conducciуn falsa { if(PlayerInfo[playerid][pLicConduccion] > 0){SendClientMessage(playerid, Rojo, "* Ya tienes una licencia de conducciуn."); return 1;} if(GetPlayerMoney(playerid) < 750){SendClientMessage(playerid, Rojo, "* No tienes suficiente dinero."); return 1;} else if(PlayerInfo[playerid][pLicConduccion] == 0){PlayerInfo[playerid][pLicConduccion] = 1;} format(stringg, sizeof(stringg), "Has comprado una licencia de conducciуn falsa por 3500$."); SendClientMessage(playerid, Verde, stringg); GivePlayerMoneyAC(playerid, -3500); } }
Код:
C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(26366) : warning 202: number of arguments does not match definition C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(26400) : warning 217: loose indentation C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(26982) : warning 217: loose indentation C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(26982) : error 029: invalid expression, assumed zero C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(26982) : error 004: function "OnPlayerClickPlayer" is not implemented C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(26987) : warning 225: unreachable code C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(26987) : error 029: invalid expression, assumed zero C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(26987) : error 004: function "OnPlayerEditAttachedObject" is not implemented C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(26992) : error 017: undefined symbol "fOffsetX" C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(26999) : warning 225: unreachable code C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(26999) : error 029: invalid expression, assumed zero C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(26999) : error 004: function "OnPlayerModelSelection" is not implemented C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(27001) : error 017: undefined symbol "listid" C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(27004) : error 017: undefined symbol "modelid" C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(27005) : error 017: undefined symbol "modelid" C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(27006) : error 017: undefined symbol "modelid" C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(27014) : warning 225: unreachable code C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(27014) : error 029: invalid expression, assumed zero C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(27014) : error 004: function "OnIncomingConnection" is not implemented C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(27049) : warning 225: unreachable code C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(27049) : error 029: invalid expression, assumed zero C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(27049) : error 004: function "OnPlayerClickMap" is not implemented C:\Users\lanus\Desktop\South Central Roleplay\BETA 0.02\gamemodes\SCRP.pwn(27059) : error 030: compound statement not closed at the end of file (started at line 25477) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 16 Errors.