[Pomoc]Bank

Započeo Rossâ„¢ =], Februar 03, 2013, 16:29:18 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Radius RP
Detaljan opis problema: Izbacuje fatal eror i erore.Evo odakle sam to uzeo http://pastebin.com/G4GYuzYa.
Dio skripte:
public OnPlayerConnect(playerid)
{
        if(fexist(UserPath(playerid)))
        {
                INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Prijavljivanje","Ukucajte lozinku da bi se ulogovali","Prijavi se","Izadji");
        }
        else
        {
                ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Registracija","Ukucajte lozinku da bi se registrovali.","Registruj se","Izadji");
        }
         new
                  stra[256];
    format(stra,sizeof(stra),"/mBank/%s.ini",GetName(playerid));
    if(!fexist(stra)) {
    SCM(playerid,-1,"Možete otvoriti bankovni račun pomoću {FF0000}/bank komande!");
    new
                        INI:dat = INI_Open(stra);
    INI_SetTag(dat,"data");
    INI_WriteInt(dat,"Novac",0);
    INI_Close(dat);
        }
        else {
    if(fexist(stra)) {
    INI_ParseFile(stra, "Load_%s", .bExtra = true, .extra = playerid);
    GivePlayerMoney(playerid,Podatci[playerid][Novac]); }
}
 
        return 1;

Izbacuje fatal erore i erore za liniju 291 = GivePlayerMoney(playerid,Podatci[playerid][Novac]); } - na tu liniju izbacuje 4 erora.
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
NEW NEW NEW

Team Fortress od sada i na SA:MP-u!!!
Dodite i zabavite se!

IP: 62.210.122.191:7789

A da možda postaš errore?

Last nick: Paradox

Izvini , evo.
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(291) : error 017: undefined symbol "Podatci"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(291) : warning 215: expression has no effect
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(291) : error 001: expected token: ";", but found "]"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(291) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(291) : fatal error 107: too many error messages on one line
NEW NEW NEW

Team Fortress od sada i na SA:MP-u!!!
Dodite i zabavite se!

IP: 62.210.122.191:7789

Pritisni CTRL+F i upiÅ¡i enum pInfo i onda kad ti to naÄ'e nakon pRank dodaj zarez i ispod njega dodaj pBank. I onda liniju gdje ti javlja error zamijeni ovom:
GivePlayerMoney(playerid,PlayerInfo[playerid][pBank]); }

I svugdje gdje ti se javlja iz te bank skripte Podatci[playerid][Novac] zamijeni sa PlayerInfo[playerid][pBank].

@kristijan250, ne!
Poslednja Izmena: Februar 03, 2013, 16:39:36 POSLE PODNE od Joey_

Last nick: Paradox

Citat: kristijan250 poslato Februar 03, 2013, 16:37:35 POSLE PODNE
new   Podatci[MAX_PLAYERS][pInfo];
na vrh
Stavio sam to ja i prije,ali opet izbacuje kao da nema.Samo da se rijesim ovog fatal erora,neznam sta je.
NEW NEW NEW

Team Fortress od sada i na SA:MP-u!!!
Dodite i zabavite se!

IP: 62.210.122.191:7789

Izvini na DP,sad se javlja ovaj eror.Ove 109,279,313 ti linije nisam stavio,sad cu ti sve stavit pa ti vidi sta nevalja.

C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(64) : error 001: expected token: ";", but found "-identifier-"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(109) : error 021: symbol already defined: "pNovac"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(279) : error 017: undefined symbol "GetName"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(313) : error 017: undefined symbol "GetName"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(318) : error 017: undefined symbol "Podatci"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(318) : warning 215: expression has no effect
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(318) : error 001: expected token: ";", but found "]"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(318) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(318) : fatal error 107: too many error messages on one line


INI_WriteInt(dat,"Banka",Podatci[playerid][Banka]); - 318 linija


[b]format(stra,sizeof(stra),"/mBank/%s.ini",GetName(playerid));[/b] - 279 linija


pNovac, - 109 linija


new Podatci[MAX_PLAYERS][pInfo]; 64 linija


format(stra,sizeof stra,"/mBank/%s.ini",GetName(playerid)); - 313 linija


NEW NEW NEW

Team Fortress od sada i na SA:MP-u!!!
Dodite i zabavite se!

IP: 62.210.122.191:7789

Undefined symbol "GetName" znači da nemaš tu funkciju. Zato dodaj ovo na kraj svog moda:

stock GetName(playerid)
{
    new pName[MAX_PLAYER_NAME+1];

    GetPlayerName(playerid, pName, sizeof(pName));
    return pName;
}


A za ove ostale errore moraš prilagodit taj bank sustav svom modu, tj. moraš promijeniti nazive varijable iz tog bank sustava na svoje.

Last nick: Paradox

C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(110) : error 021: symbol already defined: "pNovac"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(321) : error 017: undefined symbol "Bank"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(322) : error 017: undefined symbol "PinKod"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(323) : error 017: undefined symbol "Racun"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1245) : error 017: undefined symbol "Racun"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1253) : error 017: undefined symbol "Racun"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1259) : error 017: undefined symbol "Racun"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1267) : error 017: undefined symbol "Racun"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1268) : error 017: undefined symbol "Banka"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1274) : error 017: undefined symbol "Racun"
C:\Users\PC\Desktop\Radius Gaming RP\gamemodes\RG.pwn(1280) : error 017: undefined symbol "Racun"



Sad sam ja nes iskemijo,nema vise fatal erora,al ima ovog,jel za njih sve mora biti stock mozda?
NEW NEW NEW

Team Fortress od sada i na SA:MP-u!!!
Dodite i zabavite se!

IP: 62.210.122.191:7789

Refresh,zna li tko?
NEW NEW NEW

Team Fortress od sada i na SA:MP-u!!!
Dodite i zabavite se!

IP: 62.210.122.191:7789

Nevrijedi,dodo sam ja to.
Nista,lock ovo,nemogu nastimat.
NEW NEW NEW

Team Fortress od sada i na SA:MP-u!!!
Dodite i zabavite se!

IP: 62.210.122.191:7789