[PoMoc] 3 Error ?

Započeo kim3205
15. Avg. 2013. Zaključano
405
pregleda
2
postova
PedjaZakon
5
Godfather
15. Avg. 2013.
Skripta koju koristim:edit od BE YP 1.1
Detaljan opis problema:Javljaju mi se 3 erora koji mislim da su vezana za login/reg
Dio skripte:
D:\Users\Pinki\Desktop\axaxa\gamemodes\extazy.pwn(1337) : error 025: function heading differs from prototype
D:\Users\Pinki\Desktop\axaxa\gamemodes\extazy.pwn(36917) : error 025: function heading differs from prototype
D:\Users\Pinki\Desktop\axaxa\gamemodes\extazy.pwn(44496) : error 035: argument type mismatch (argument 2)
D:\Users\Pinki\Desktop\axaxa\gamemodes\extazy.pwn(105175) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

3 Errors.



1 Linija koja ima error je ova !
D:\Users\Pinki\Desktop\axaxa\gamemodes\extazy.pwn(1337) : error 025: function heading differs from prototype
forward OnPlayerLogin(playerid,password[]);






2 Linija koja ima error je ova !
D:\Users\Pinki\Desktop\axaxa\gamemodes\extazy.pwn(36917) : error 025: function heading differs from prototype
public OnPlayerLogin(playerid,password[])
{
new tmp2;
    new string2;
new playername2;
new playernamesplit;
    GetPlayerName(playerid, playername2, sizeof(playername2));
split(playername2, playernamesplit, '_');
format(string2, sizeof(string2), "users/%s.ini", playername2);
new File: UserFile = fopen(string2, io_read);
if ( UserFile )
{
    new PassData;
    new keytmp, valtmp;
    fread( UserFile, PassData, sizeof( PassData ) );
    keytmp = ini_GetKey( PassData );
    if( strcmp( keytmp, "Key", true ) == 0 )
{
valtmp = ini_GetValue( PassData );
strmid(PI, valtmp, 0, strlen(valtmp)-1, 255);
}
if( strcmp( keytmp, "Email", true ) == 0 )
{
valtmp = ini_GetValue( PassData );
strmid(PI, valtmp, 0, strlen(valtmp)-1, 255);
}
if(strcmp(PI,password, true ) == 0 )
{
    new key[ 256 ], val[ 256 ], email[ 256 ];
    new Data[ 256 ];
    while ( fread( UserFile, Data, sizeof( Data ) ) )
{
key = ini_GetKey( Data );
email = ini_GetKey( Data );




3 Linija koja ima error je ova !
D:\Users\Pinki\Desktop\axaxa\gamemodes\extazy.pwn(44496) : error 035: argument type mismatch (argument 2)
				OnPlayerLogin(playerid,tmppass);
}
else
{
    new imebre;
GetPlayerName(playerid,imebre,sizeof(imebre));
strreplace(imebre, '_', ' ');
            new loginstring;
            new loginname;
            GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"{FFFF00}=====================================|\n{0000FF}Dobrodosli na {FFFF00} Balkan Extazy YP\n{FFFFFF}IP adresa TeamSpeak-a {FFFF00} 91.193.75.66:9988\n{FF0000}Adresa foruma {FFFF00}www.balkan-extazy.net\n{FFFF00}=====================================|");
ShowPlayerDialog(playerid,12346667,DIALOG_STYLE_PASSWORD,"{FFFF00}Login",loginstring,"Login","Exit");
gPlayerLogTries += 1;
JBC_SetPlayerPos( playerid, 1378.0096,-913.6568,65.9932 );
                SetPlayerCameraPos( playerid, 1394.1369, -906.3903, 62.5692 );
                SetPlayerCameraLookAt( playerid, 1397.3092, -897.1775, 64.8187 );
if(gPlayerLogTries == 5) { Kick(playerid); }
}
}


Neke slike/video za lakse dobivanje pomoci(neobavezno)://
[BL-RP]Armin
4
Enforcer
17. Avg. 2013.
♫ вєиac.ılllı. wrote on August 17, 2013, 3:30 am:
dodaj stock na prototay funkciju

rjesio sam  mu ja 😄

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha