Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: gargy001 poslato Jul 21, 2014, 15:54:16 POSLE PODNE

Naslov: [Pomoć]
Poruka od: gargy001 poslato Jul 21, 2014, 15:54:16 POSLE PODNE
Skripta koju koristim:
Detaljan opis problema: Error
C:\Documents and Settings\Administrator\Desktop\Crystal Life RolePlay X1 v2\gamemodes\X1.pwn(1035) : error 033: array must be indexed (variable "Podatci0")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Dio skripte:

Linija 1035: if(clickedid == Podatci0)
Linija 1036:   {
Linija 1037:    ShowPlayerDialog(playerid,DIALOG_SIFRA, DIALOG_STYLE_INPUT, "Lozinka", "Unesite lozinku:", "Unesi", "Odustani");
Linija 1038:    }

TextDraw:
Podatci0[playerid] = CreatePlayerTextDraw(playerid, 94.444427, 156.074050, "Lozinka");
PlayerTextDrawLetterSize(playerid, Podatci0[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Podatci0[playerid], 1);
PlayerTextDrawColor(playerid, Podatci0[playerid], -1);
PlayerTextDrawSetShadow(playerid, Podatci0[playerid], 0);
PlayerTextDrawSetOutline(playerid, Podatci0[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Podatci0[playerid], 51);
PlayerTextDrawFont(playerid, Podatci0[playerid], 1);
PlayerTextDrawSetProportional(playerid, Podatci0[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Podatci0[playerid], true);

Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Naslov: Odg: [Pomoć]
Poruka od: youngdeal poslato Jul 21, 2014, 15:57:26 POSLE PODNE
if(clickedid == Podatci0[playerid])
  {
ShowPlayerDialog(playerid,DIALOG_SIFRA, DIALOG_STYLE_INPUT, "Lozinka", "Unesite lozinku:", "Unesi", "Odustani");
}

i preuredi naslov teme.
Naslov: Odg: [Pomoć]
Poruka od: gargy001 poslato Jul 21, 2014, 15:58:37 POSLE PODNE
Citat: C++ poslato Jul 21, 2014, 15:57:26 POSLE PODNE
if(clickedid == Podatci0[playerid])
  {
ShowPlayerDialog(playerid,DIALOG_SIFRA, DIALOG_STYLE_INPUT, "Lozinka", "Unesite lozinku:", "Unesi", "Odustani");
}

i preuredi naslov teme.

C:\Documents and Settings\Administrator\Desktop\Crystal Life RolePlay X1 v2\gamemodes\X1.pwn(1035) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
Naslov: Odg: [Pomoć]
Poruka od: youngdeal poslato Jul 21, 2014, 15:59:39 POSLE PODNE
gledaj koristi to pod OnPlayerClickPlayertextdraw a ne pod OnPlayerClickTextdraw
i samo umesto

if(clickedid == Podatci0[playerid])
  {
ShowPlayerDialog(playerid,DIALOG_SIFRA, DIALOG_STYLE_INPUT, "Lozinka", "Unesite lozinku:", "Unesi", "Odustani");
}


ide

if(playertextid == Podatci0[playerid])
  {
ShowPlayerDialog(playerid,DIALOG_SIFRA, DIALOG_STYLE_INPUT, "Lozinka", "Unesite lozinku:", "Unesi", "Odustani");
}
Naslov: Odg: [Pomoć]
Poruka od: Blaeks poslato Jul 21, 2014, 17:05:44 POSLE PODNE
kada budete procitali pravila i ti i moderator onda otvori temu