[POMOC] Wc/Glad

Započeo MladiSkripter, Oktobar 09, 2016, 14:21:18 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:Moja
Detaljan opis problema:Ovako pocnao sam da pravim wc/glad sa textdraw .. I sad vadi mi errori nemogu da nacem gde je error I sta da napravim za da ne vadi error ... :@
Dio skripte: /
Neke slike/video za lakse dobivanje pomoci(neobavezno):Evo kod..â†"

#include <a_samp>

#define STARTING_GLAD 84
#define STARTING_WC 72

new PlayerText:GladWCText[1][MAX_PLAYERS];
new PlayerText:GladWCText1[2][MAX_PLAYERS];

public OnGameModeInit() {
AddPlayerClass(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
return 1; }

public OnPlayerConnect(playerid) {

SetPVarInt(playerid, "glad", 0);
SetPVarInt(playerid, "wc", 0);
SetPVarInt(playerid, "showinggw", 0);

    //---------------------------------------------------------------------------------------------
GladWCText[playerid] = TextDrawCreate(playerid,555.199707, 213.546890, "Glad:100");
PlayerTextDrawLetterSize(playerid,GladWCText[0][playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid,GladWCText[0][playerid], 1);
PlayerTextDrawColor(playerid,GladWCText[0][playerid], -65281);
PlayerTextDrawSetShadow(playerid,GladWCText[0][playerid], 0);
PlayerTextDrawSetOutline(playerid,GladWCText[0][playerid], 1);
PlayerTextDrawBackgroundColor(playerid,GladWCText[0][playerid], -16776961);
PlayerTextDrawFont(playerid,GladWCText[0][playerid], 1);
PlayerTextDrawSetProportional(playerid,GladWCText[0][playerid], 1);

GladWCText1[playerid] = TextDrawCreate(playerid,557.599853, 232.959976, "WC:100");
PlayerTextDrawLetterSize(playerid,GladWCText1[1][playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid,GladWCText1[1][playerid], 1);
PlayerTextDrawColor(playerid,GladWCText1[1][playerid], -65281);
PlayerTextDrawSetShadow(playerid,GladWCText1[1][playerid], 0);
PlayerTextDrawSetOutline(playerid,GladWCText1[1][playerid], 1);
PlayerTextDrawBackgroundColor(playerid,GladWCText1[1][playerid], -16776961);
PlayerTextDrawFont(playerid,GladWCText1[1][playerid], 1);
PlayerTextDrawSetProportional(playerid,GladWCText1[1][playerid], 1);

new Gladwc2;
Gladwc2 = TextDrawCreate(547.200012, 215.039993, "LD_SPAC:white");
TextDrawLetterSize(Gladwc2, 0.000000, 0.000000);
TextDrawTextSize(Gladwc2, 2.399963, 35.093338);
TextDrawAlignment(Gladwc2, 1);
TextDrawColor(Gladwc2, 8388863);
TextDrawSetShadow(Gladwc2, 0);
TextDrawSetOutline(Gladwc2, 0);
TextDrawFont(Gladwc2, 4);

new Gladwc3;
Gladwc3 = TextDrawCreate(544.799987, 252.373336, "LD_SPAC:white");
TextDrawLetterSize(Gladwc3, 0.000000, 0.000000);
TextDrawTextSize(Gladwc3, 92.000000, 1.493331);
TextDrawAlignment(Gladwc3, 1);
TextDrawColor(Gladwc3, 8388863);
TextDrawSetShadow(Gladwc3, 0);
TextDrawSetOutline(Gladwc3, 0);
TextDrawFont(Gladwc3, 4);

new Gladwc4;
Gladwc4 = TextDrawCreate(543.200012, 209.813339, "LD_SPAC:white");
TextDrawLetterSize(Gladwc4, -0.081599, 0.530133);
TextDrawTextSize(Gladwc4, 93.600044, 1.493332);
TextDrawAlignment(Gladwc4, 1);
TextDrawColor(Gladwc4, 8388863);
TextDrawSetShadow(Gladwc4, 0);
TextDrawSetOutline(Gladwc4, 0);
TextDrawFont(Gladwc4, 4);

new Gladwc5;
Gladwc5 = TextDrawCreate(551.200012, 230.720001, "LD_SPAC:white");
TextDrawLetterSize(Gladwc5, 0.000000, 0.000000);
TextDrawTextSize(Gladwc5, 84.000000, 1.493316);
TextDrawAlignment(Gladwc5, 1);
TextDrawColor(Gladwc5, 8388863);
TextDrawSetShadow(Gladwc5, 0);
TextDrawSetOutline(Gladwc5, 0);
TextDrawFont(Gladwc5, 4);
//---------------------------------------------------------------------------------------------
return 1; }

public OnPlayerSpawn(playerid){
if(GetPVarInt(playerid, "showinggw") == 0) {
    SetPVarInt(playerid, "showinggw", 1);
UpdateGladWCText(playerid);
UpdateGladWCText1(playerid);
    PlayerTextDrawShow(playerid, GladWCText[playerid]);
    PlayerTextDrawShow(playerid, GladWCText1[playerid]);
return 1; }

stock UpdateGladWCText(playerid) {
if(!IsPlayerConnected(playerid)) {return 1;}
new str[128];
format(str, sizeof(str), "~y~Glad~w~: %d~n~~y~WC:~w~ %d", GetPVarInt(playerid, "glad"), GetPVarInt(playerid, "wc"));
PlayerTextDrawSetString(playerid, GladWCText[playerid], str);
PlayerTextDrawSetString(playerid, GladWCText1[playerid], str);
return 1; }

I kada compiletuem vadi mi 13errori nemogu da se snadjem.. :@ neko ako zna da mi ga sredi ?



Citat: [𝕎ð"¾] 𝕊ð"¼ð•ƒð•€ð•,,𝕆𝕍𝕀â,,, poslato Oktobar 09, 2016, 14:39:47 POSLE PODNE
de daj errore
Citat: Harexe Seljak poslato Oktobar 09, 2016, 14:37:02 POSLE PODNE
POslaji errore

: error 035: argument type mismatch (argument 3)
: error 033: array must be indexed (variable "GladWCText")
: error 035: argument type mismatch (argument 3)
: error 033: array must be indexed (variable "GladWCText1")
: error 017: undefined symbol "UpdateGladWCText"
: error 017: undefined symbol "UpdateGladWCText1"
: error 035: argument type mismatch (argument 2)
: error 035: argument type mismatch (argument 2)
: error 029: invalid expression, assumed zero
: error 017: undefined symbol "UpdateGladWCText"
: error 035: argument type mismatch (argument 2)
: error 035: argument type mismatch (argument 2)
: error 030: compound statement not closed at the end of file (started at line 83)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


13 Errors.

/*========================================*/
/*===[ na pocetak skripte ]=======================*/
#undef MAX_PLAYERS
#define MAX_PLAYERS                                                          300
/*========================================*/
/*===[ Tamo de su ti tdovi ]=======================*/
new PlayerText:GladWCText[2][MAX_PLAYERS];


[pawn]La vita E bella [/pawn]

Citat: [EC]Hrcak poslato Oktobar 09, 2016, 21:51:38 POSLE PODNE
/*========================================*/
/*===[ na pocetak skripte ]=======================*/
#undef MAX_PLAYERS
#define MAX_PLAYERS                                                          300
/*========================================*/
/*===[ Tamo de su ti tdovi ]=======================*/
new PlayerText:GladWCText[2][MAX_PLAYERS];

Vidi sad..

Citat: MladiSkripter poslato Oktobar 09, 2016, 22:52:16 POSLE PODNE
Citat: [EC]Hrcak poslato Oktobar 09, 2016, 21:51:38 POSLE PODNE
/*========================================*/
/*===[ na pocetak skripte ]=======================*/
#undef MAX_PLAYERS
#define MAX_PLAYERS                                                          300
/*========================================*/
/*===[ Tamo de su ti tdovi ]=======================*/
new PlayerText:GladWCText[2][MAX_PLAYERS];

Vidi sad..

Zamjeni sa ovime:

GladWCText[playerid][0] = TextDrawCreate(playerid,555.199707, 213.546890, "Glad:100");
PlayerTextDrawLetterSize(playerid,GladWCText[playerid][0], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid,GladWCText[playerid][0], 1);
PlayerTextDrawColor(playerid,GladWCText[playerid][0], -65281);
PlayerTextDrawSetShadow(playerid,GladWCText[playerid][0], 0);
PlayerTextDrawSetOutline(playerid,GladWCText[playerid][0], 1);
PlayerTextDrawBackgroundColor(playerid,GladWCText[playerid][0], -16776961);
PlayerTextDrawFont(playerid,GladWCText[playerid][0], 1);
PlayerTextDrawSetProportional(playerid,GladWCText[playerid][0], 1);

GladWCText[playerid][1] = TextDrawCreate(playerid,557.599853, 232.959976, "WC:100");
PlayerTextDrawLetterSize(playerid,GladWCText[playerid][1], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid,GladWCText[playerid][1], 1);
PlayerTextDrawColor(playerid,GladWCText[playerid][1], -65281);
PlayerTextDrawSetShadow(playerid,GladWCText[playerid][1], 0);
PlayerTextDrawSetOutline(playerid,GladWCText[playerid][1], 1);
PlayerTextDrawBackgroundColor(playerid,GladWCText[playerid][1], -16776961);
PlayerTextDrawFont(playerid,GladWCText[playerid][1], 1);
PlayerTextDrawSetProportional(playerid,GladWCText[playerid][1], 1);





Citat: [SL]Don_Region poslato Oktobar 09, 2016, 23:02:08 POSLE PODNE
Citat: MladiSkripter poslato Oktobar 09, 2016, 22:52:16 POSLE PODNE
Citat: [EC]Hrcak poslato Oktobar 09, 2016, 21:51:38 POSLE PODNE
/*========================================*/
/*===[ na pocetak skripte ]=======================*/
#undef MAX_PLAYERS
#define MAX_PLAYERS                                                          300
/*========================================*/
/*===[ Tamo de su ti tdovi ]=======================*/
new PlayerText:GladWCText[2][MAX_PLAYERS];

Vidi sad..

Zamjeni sa ovime:

GladWCText[playerid][0] = TextDrawCreate(playerid,555.199707, 213.546890, "Glad:100");
PlayerTextDrawLetterSize(playerid,GladWCText[playerid][0], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid,GladWCText[playerid][0], 1);
PlayerTextDrawColor(playerid,GladWCText[playerid][0], -65281);
PlayerTextDrawSetShadow(playerid,GladWCText[playerid][0], 0);
PlayerTextDrawSetOutline(playerid,GladWCText[playerid][0], 1);
PlayerTextDrawBackgroundColor(playerid,GladWCText[playerid][0], -16776961);
PlayerTextDrawFont(playerid,GladWCText[playerid][0], 1);
PlayerTextDrawSetProportional(playerid,GladWCText[playerid][0], 1);

GladWCText[playerid][1] = TextDrawCreate(playerid,557.599853, 232.959976, "WC:100");
PlayerTextDrawLetterSize(playerid,GladWCText[playerid][1], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid,GladWCText[playerid][1], 1);
PlayerTextDrawColor(playerid,GladWCText[playerid][1], -65281);
PlayerTextDrawSetShadow(playerid,GladWCText[playerid][1], 0);
PlayerTextDrawSetOutline(playerid,GladWCText[playerid][1], 1);
PlayerTextDrawBackgroundColor(playerid,GladWCText[playerid][1], -16776961);
PlayerTextDrawFont(playerid,GladWCText[playerid][1], 1);
PlayerTextDrawSetProportional(playerid,GladWCText[playerid][1], 1);

Sad su samo 4errore -.-
(23) : warning 225: unreachable code
(23) : warning 217: loose indentation
(23) : error 017: undefined symbol "GladWCText"
(23) : warning 215: expression has no effect
(23) : error 001: expected token: ";", but found "]"
(23) error 029: invalid expression, assumed zero
(23) fatal error 107: too many error messages on one line
Poslednja Izmena: Oktobar 09, 2016, 23:28:58 POSLE PODNE od MladiSkripter