05.03.2018, 14:56
Hi guys! I started gamemode for 0 and run in trouble!
26 errors:
If some1 can help, pls help me!
26 errors:
Код:
C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(67) : error 017: undefined symbol "UserPath" C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(69) : error 017: undefined symbol "UserPath" C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(252) : error 079: inconsistent return types (array & non-array) C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(255) : error 079: inconsistent return types (array & non-array) C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(256) : error 017: undefined symbol "UserPath" C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(258) : error 017: undefined symbol "udb_hash" C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(270) : error 079: inconsistent return types (array & non-array) C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(273) : error 017: undefined symbol "udb_hash" C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(275) : error 017: undefined symbol "UserPath" C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(288) : warning 217: loose indentation C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(290) : error 079: inconsistent return types (array & non-array) C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(292) : error 001: expected token: "{", but found "case" C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(308) : error 079: inconsistent return types (array & non-array) C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(310) : error 001: expected token: "{", but found "case" C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(332) : error 079: inconsistent return types (array & non-array) C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(343) : warning 202: number of arguments does not match definition C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(344) : error 017: undefined symbol "SaveUser" C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(349) : warning 217: loose indentation C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(349) : error 079: inconsistent return types (array & non-array) C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(352) : warning 217: loose indentation C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(352) : error 029: invalid expression, assumed zero C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(352) : error 004: function "S@@_OnPlayerClickPlayer" is not implemented C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(354) : error 079: inconsistent return types (array & non-array) C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(357) : warning 225: unreachable code C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(357) : error 029: invalid expression, assumed zero C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(357) : error 017: undefined symbol "LoadUser_data" C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(358) : error 029: invalid expression, assumed zero C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(358) : error 017: undefined symbol "LoadUser_data" C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(360) : error 017: undefined symbol "name" C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(360) : error 017: undefined symbol "value" C:\Users\Nemanja\Desktop\Od 0\gamemodes\BL.pwn(360) : error 079: inconsistent return types (array & non-array) Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { //_==================== REGISTRACIJA / LOGIN============= switch( dialogid ) { case D_REGISTRACIJA: { if (!response) return Kick(playerid); if(response) { if(!strlen(inputtext)) return ShowPlayerDialog(playerid, D_REGISTRACIJA, DIALOG_STYLE_INPUT, "Registering","Ukucajte neku sifru.","Register","Kick"); new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); INI_WriteInt(File,"Password",udb_hash(inputtext)); INI_WriteInt(File,"Registrovan",0); INI_WriteInt(File,"Godine",0); INI_WriteInt(File,"Pol",0); INI_WriteInt(File,"Drzava",0); INI_Close(File); ShowPlayerDialog(playerid, D_POL, DIALOG_STYLE_LIST, "Izaberite pol", "Musko\nZensko", "Izaberi", "Kick"); } } case D_LOGIN: { if ( !response ) return Kick ( playerid ); if( response ) { if(udb_hash(inputtext) == PlayerInfo[playerid][pPassword]) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); SendClientMessage(playerid, -1, "Uspesno ulogovan"); SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0); SpawnPlayer(playerid); } else { ShowPlayerDialog(playerid, D_LOGIN, DIALOG_STYLE_INPUT,"Login","Unijeli ste netacan password.\nDa bi se logirali morate unijeti tacan password.","Login","Kick"); } } } } //-------------------------- if(dialogid == D_POL) { if(!response) return Kick(playerid); switch(listitem) case 0: { PlayerInfo[playerid][pPol] = 1; ShowPlayerDialog(playerid, D_DRZAVA, DIALOG_STYLE_LIST, "Odaberite drzavu iz koje dolazite", "Bosna i Hercegovina\nSrbija\nHrvatska", "Register", "Kick"); SendClientMessage(playerid, -1, "Vi ste musko, nastavite sa registracijom"); } case 1: { PlayerInfo[playerid][pPol] = 2; ShowPlayerDialog(playerid, D_DRZAVA, DIALOG_STYLE_LIST, "Odaberite drzavu iz koje dolazite", "Bosna i Hercegovina\nSrbija\nHrvatska", "Register", "Kick"); SendClientMessage(playerid, -1, "Vi ste zensko, nastavite sa registracijom"); } } //---------------------------- if(dialogid == D_DRZAVA) { if(!response) return Kick(playerid); switch(listitem) case 0: { PlayerInfo[playerid][pDrzava] = 1; SendClientMessage(playerid, -1, "Vi dolazite iz Bosne i Hercegovine!"); PlayerInfo[playerid][pRegistrovan] = 1; ShowPlayerDialog(playerid, D_GODINE, DIALOG_STYLE_INPUT, "Koliko godina imate?", "U polje ispod upisite koliko imate godina", "Enter", "Kick"); } case 1: { PlayerInfo[playerid][pDrzava] = 2; SendClientMessage(playerid, -1, "Vi dolazite iz Srbije!"); PlayerInfo[playerid][pRegistrovan] = 1; ShowPlayerDialog(playerid, D_GODINE, DIALOG_STYLE_INPUT, "Koliko godina imate?", "U polje ispod upisite koliko imate godina", "Enter", "Kick"); } case 2: { PlayerInfo[playerid][pDrzava] = 3; SendClientMessage(playerid, -1, "Vi dolazite iz Hrvatske!"); PlayerInfo[playerid][pRegistrovan] = 1; ShowPlayerDialog(playerid, D_GODINE, DIALOG_STYLE_INPUT, "Koliko godina imate?", "U polje ispod upisite koliko imate godina", "Enter", "Kick"); } } //----------------------------------- if(dialogid == D_GODINE) { if(!response) return Kick(playerid); if(response) { new godine; godine = strval(inputtext); if(godine < 7 || godine > 60) { SendClientMessage(playerid,-1,"Nemozete ici ispod 7 i iznad 60 godina!"); ShowPlayerDialog(playerid, D_GODINE, DIALOG_STYLE_INPUT, "Koliko godina imate?", "U polje ispod upisite koliko imate godina", "Enter", "Kick"); } PlayerInfo[playerid][pGodine] = strval(inputtext); SendClientMessage(playerid, -1, "U redu imate %d godina", strval(inputtext)); SaveUser(playerid); } } //-------------------------------- return 1; }