Pomoc

Započeo kAr1o, Oktobar 17, 2021, 16:08:45 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Problem(error/warning):

warning 213: tag mismatch: expected tag "PlayerText", but found "Text"
error 001: expected token: ",", but found "["
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line

Deo skripte:

stock UnistiInGameTD(playerid)
{
for(new i = 0; i < 9; i ++)
{
        PlayerTextDrawDestroy(playerid, Igtd[playerid][i]);         //========== OVDJE IZBACUJE ERROR
Igtd[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
}
}

Menjo sam td i sada mi izbacuje error kod PlayerTextDrawDestroy
Poslednja Izmena: Oktobar 20, 2021, 23:56:12 POSLE PODNE od M Ө M Σ N Z I

imas li nesto ovako od new-ova

[pawn]new PlayerText:Igtd[MAX_PLAYERS][Brojevi] // Text: se koristi ako TD nije player a ako jeste player koristis PlayerText:[/pawn]
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama

Citat: Gravano poslato Oktobar 17, 2021, 17:09:37 POSLE PODNE
imas li nesto ovako od new-ova

[pawn]new PlayerText:Igtd[MAX_PLAYERS][Brojevi] // Text: se koristi ako TD nije player a ako jeste player koristis PlayerText:[/pawn]

koristim

new Text:Igtd[9];

i kad stavim sad kako si i ti [MAX_PLAYERS]
iskoci mi jos errora

array must be indexed (variable "Igtd")
argument type mismatch (argument 1)


Citat: Gravano poslato Oktobar 17, 2021, 17:56:07 POSLE PODNE
new PlayerText:Igtd[MAX_PLAYERS][9];

iskace mi jos errora

array must be indexed (variable "Igtd")
argument type mismatch (argument 1)

jel koristis tako kako sam napisao?
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama

[pawn]new PlayerText:Igtd[MAX_PLAYERS][10];[/pawn]

Citat: kAr1o poslato Oktobar 17, 2021, 16:08:45 POSLE PODNE
Problem(error/warning):

warning 213: tag mismatch: expected tag "PlayerText", but found "Text"
error 001: expected token: ",", but found "["
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line

Deo skripte:

stock UnistiInGameTD(playerid)
{
for(new i = 0; i < 9; i ++)
{
        PlayerTextDrawDestroy(playerid, Igtd[playerid][i]);         //========== OVDJE IZBACUJE ERROR
Igtd[playerid][i] = PlayerText:INVALID_TEXT_DRAW;
}
}

Menjo sam td i sada mi izbacuje error kod PlayerTextDrawDestroy
new PlayerText:Igtd[MAX_PLAYERS][9];

posalji mi u pm kod textdrawa jesi siguran da su playertextdrawovi?

Ne možeš samo da promeniš iz Text: u PlayerText: i kaeš gotovo promenio sam TD u PTD :D

Textdrawovi su mu bili na global...