21.09.2010, 15:21
this my script..
and show up the error like this:
any body know? how to fix it? Thanks before..
Код:
[172]public OnPlayerLogin(playerid,password[]) [173]{ [174] new tmp2[256]; [175] new string2[64]; [176] new playername2[MAX_PLAYER_NAME]; [177] new playernamesplit[3][MAX_PLAYER_NAME]; [178] GetPlayerName(playerid, playername2, sizeof(playername2)); [179] split(playername2, playernamesplit, '_'); [180] format(string2, sizeof(string2), "users/%s.ini", playername2); [181] new File: UserFile = fopen(string2, io_read); [182] if ( UserFile ) [183] { [184] new PassData[256]; [185] new keytmp[256], valtmp[256]; [186] fread( UserFile , PassData , sizeof( PassData ) ); [187] keytmp = ini_GetKey( PassData ); [188] if( strcmp( keytmp , "Key" , true ) == 0 ) [189] { [190] valtmp = ini_GetValue( PassData ); [191] strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255); [192] } [193] if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 ) [194] { [195] new key[ 256 ] , val[ 256 ]; [196] new Data[ 256 ]; [197] while ( fread( UserFile , Data , sizeof( Data ) ) ) [198] { [199] key = ini_GetKey( Data ); [200] if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pSex] = strval( val ); } [201] if( strcmp( key , "Age" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pAge] = strval( val ); } [202] } [203] fclose(UserFile);//close the file after everything has been read in the while [204] } [205] else [206] { [207] new loginstring[128]; [208] new loginname[64]; [209] GetPlayerName(playerid,loginname,sizeof(loginname)); [210] format(loginstring,sizeof(loginstring),"WRONG PASSWORD\nPlease enter the correct password:",loginname); [211] ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit"); [212] fclose(UserFile); [213] gPlayerLogTries[playerid] += 1;} [214] return 1; [215] }
Quote:
C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(187) : error 004: function "ini_GetKey" is not implemented C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(187) : error 033: array must be indexed (variable "keytmp") C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(190) : error 004: function "ini_GetValue" is not implemented C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(190) : error 033: array must be indexed (variable "valtmp") C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(199) : error 004: function "ini_GetKey" is not implemented C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(199) : error 033: array must be indexed (variable "key") C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(200) : error 004: function "ini_GetValue" is not implemented C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(200) : error 033: array must be indexed (variable "val") C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(201) : error 004: function "ini_GetValue" is not implemented C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(201) : error 033: array must be indexed (variable "val") C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(213) : error 017: undefined symbol "gPlayerLogTries" C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(213) : warning 215: expression has no effect C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(213) : error 001: expected token: ";", but found "]" C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(213) : error 029: invalid expression, assumed zero C:\Program Files\Rockstar Games\Mode GTA\Project\filterscripts\Register.pwn(213) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 14 Errors. |