Errori

Započeo Fqris, Maj 25, 2019, 13:16:39 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning):
(103524) : error 017: undefined symbol "string"
(103524) : error 017: undefined symbol "string"
(103524) : error 029: invalid expression, assumed zero
(103524) : fatal error 107: too many error messages on one line

Deo skripte:
CMD:oberi(playerid, params[])
    {
		new Float:x, Float:y, Float:z;
		GetObjectPos(marihuana, x, y, z);
		if(PlayerInfo[playerid][pJob] != 4) return SendClientMessage(playerid, COLOR_BLUE, "Niste diler droge.");
		if(DrogaSpremna[playerid] != 1) return SendClientMessage(playerid, COLOR_BLUE, "Prvo morate da posadite sjeme.");
		if(!IsPlayerInRangeOfPoint(playerid,5, -1138.4684,-1134.5309,129.2188)) return SendClientMessage(playerid, COLOR_BLUE, "Niste blizu marihuane");
		DestroyObject(marihuana);
		PlayerInfo[playerid][pDrugs1] +=random (30);
		format(string, sizeof(string), "** Obrao si marihuanu, sada ukupno imate %d !", PlayerInfo[playerid][pDrugs1]); // Ovo je linija 103524
		SCM(playerid, COLOR_GREY, string);
		DrogaSpremna[playerid] = 0;
		Sadjenje[playerid] = 0;
		return 1;
	}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): //

kada sam prebacio komandu u zcmd onda mi je izbacile ove errore

TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU

new string[64];
                                                                                 
Legacy Gaming Since 2017 ©

Scripter and Founder
Scripting 3+ Years
https://www.facebook.com/LegacyGamingOGC/ (FB Stranica)
https://www.facebook.com/nikolaa.jovicic (FB Nalog)

                                                                                 

Citat: .варнинг poslato Maj 25, 2019, 13:41:57 POSLE PODNE
new string[64];

Jesam, al dobijem jos vise...

(95962) : warning 202: number of arguments does not match definition
(102425) : warning 202: number of arguments does not match definition
(103451) : warning 204: symbol is assigned a value that is never used: "hirefee"
(103536) : error 017: undefined symbol "tmp"
(103536) : error 017: undefined symbol "cmdtext"
(103537) : error 017: undefined symbol "tmp"
(103543) : error 017: undefined symbol "tmp"
(103546) : error 017: undefined symbol "string"
(103546) : error 017: undefined symbol "string"
(103546) : error 029: invalid expression, assumed zero
(103546) : fatal error 107: too many error messages on one line

TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU

Citat: Fqris poslato Maj 25, 2019, 13:56:39 POSLE PODNE
Jesam, al dobijem jos vise...

(95962) : warning 202: number of arguments does not match definition
(102425) : warning 202: number of arguments does not match definition
(103451) : warning 204: symbol is assigned a value that is never used: "hirefee"
(103536) : error 017: undefined symbol "tmp"
(103536) : error 017: undefined symbol "cmdtext"
(103537) : error 017: undefined symbol "tmp"
(103543) : error 017: undefined symbol "tmp"
(103546) : error 017: undefined symbol "string"
(103546) : error 017: undefined symbol "string"
(103546) : error 029: invalid expression, assumed zero
(103546) : fatal error 107: too many error messages on one line

Tako uradi i za ostale

Zameni tu komandu sa ovim:
CMD:oberi(playerid, params[])
    {
		new Float:x, Float:y, Float:z, string[100];
		GetObjectPos(marihuana, x, y, z);
		if(PlayerInfo[playerid][pJob] != 4) return SendClientMessage(playerid, COLOR_BLUE, "Niste diler droge.");
		if(DrogaSpremna[playerid] != 1) return SendClientMessage(playerid, COLOR_BLUE, "Prvo morate da posadite sjeme.");
		if(!IsPlayerInRangeOfPoint(playerid,5, -1138.4684,-1134.5309,129.2188)) return SendClientMessage(playerid, COLOR_BLUE, "Niste blizu marihuane");
		DestroyObject(marihuana);
		PlayerInfo[playerid][pDrugs1] +=random (30);
		format(string, sizeof(string), "** Obrao si marihuanu, sada ukupno imate %d !", PlayerInfo[playerid][pDrugs1]); // Ovo je linija 103524
		SCM(playerid, COLOR_GREY, string);
		DrogaSpremna[playerid] = 0;
		Sadjenje[playerid] = 0;
		return 1;
	}
• Website: www.vasic.dev
Web Development & Cyber Security

Rijeseno, lock

TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU