Jump to content
  • 0

Ajutor eroare copilare


PolloDate

Question

Problema intalnita (descriere): Cand vreau sa copilez gm-ul imi da aceasta eroare!
Ero(area / rile) / warning-(ul / urile): 

C:\Users\Catalin\Downloads\Laimon RPG v0.1\pawno\include\streamer.inc(487) : warning 219: local variable "hitid" shadows a variable at a preceding level
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22311) : warning 202: number of arguments does not match definition
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22311) : warning 206: redundant test: constant expression is non-zero
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22314) : error 035: argument type mismatch (argument 3)
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22314) : warning 215: expression has no effect
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22314) : error 001: expected token: ";", but found ")"
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22314) : error 029: invalid expression, assumed zero
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22314) : fatal error 107: too many error messages on one line


Liniile de cod / sursa / script-ul(obligatoriu): 

22311  if(strlen(groupVariables[xf][gGroupName] >= 1) && strcmp(groupVariables[xf][gGroupName]), "None", true )
22312 	    {
22313	    	new stringy2[256];
22314			mysql_format(handle, stringy2, 256 ,  "SELECT * FROM 'playeraccounts' WHERE  'playerGroup' = '%d'" xf );
22315			new Cache: resultx = mysql_query (handle, stringy2);


Imagini / Video (optional): - 
Ati incercat sa rezolvati singur?: Am incercat sa modific eu pe acolo dar nu am reusit nimic....

Multumesc!

Edited by PolloDate
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Problema intalnita (descriere): Cand vreau sa copilez gm-ul imi da aceasta eroare!
Ero(area / rile) / warning-(ul / urile): 

C:\Users\Catalin\Downloads\Laimon RPG v0.1\pawno\include\streamer.inc(487) : warning 219: local variable "hitid" shadows a variable at a preceding level
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22311) : warning 202: number of arguments does not match definition
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22311) : warning 206: redundant test: constant expression is non-zero
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22314) : error 035: argument type mismatch (argument 3)
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22314) : warning 215: expression has no effect
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22314) : error 001: expected token: ";", but found ")"
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22314) : error 029: invalid expression, assumed zero
C:\Users\Catalin\Downloads\Laimon RPG v0.1\gamemodes\laimon.pwn(22314) : fatal error 107: too many error messages on one line


Liniile de cod / sursa / script-ul(obligatoriu): 

CMD:factions(playerid, params[])
{
	new members;
	format(szMessage, sizeof(szMessage), "Factions:");
	for(new xf = 0; xf < MAX_GROUPS; xf++)
	{
	    if(strlen(groupVariables[xf][gGroupName]) >= 1 && strcmp(groupVariables[xf][gGroupName]), "None", true)
	    {
	    	new stringy2[256];
			mysql_format(handle, stringy2, 256 ,  "SELECT * FROM 'playeraccounts' WHERE  'playerGroup' = '%d'" xf) ;
			new Cache: resultx = mysql_query (handle, stringy2);
			members = cache_get_row_count();
			cache_delete(resultx);
			format(szMessage, sizeof(szMessage),"%s\n%s [%d/%d]", szMessage, groupVariables[xf][gGroupName], members, groupVariables[xf][gSlots]);
	    }
	}
	ShowPlayerDialog(playerid, 4500, DIALOG_STYLE_LIST,"Server: Factions", szMessage, "Select", "Cancel");
	SelFaction[playerid] = 0;
	return 1;
}


Imagini / Video (optional): - 
Ati incercat sa rezolvati singur?: Am incercat sa modific eu pe acolo dar nu am reusit nimic....

Multumesc!

care este  linia din comanda care ti-a dat eroare

Link to comment
Share on other sites

  • 0

Salut!Degeaba ai dat edit fiindca nu se intelege...

Iar in legatura cu

 local variable "hitid" shadows a variable at a preceding level

Ai un new in partea de sus a modului tau?

Daca nu pune si revin-o cu un raspuns.

new hitid = 999;

 

 

Link to comment
Share on other sites

  • 0

Salut!Degeaba ai dat edit fiindca nu se intelege...

Iar in legatura cu

 local variable "hitid" shadows a variable at a preceding level

Ai un new in partea de sus a modului tau?

Daca nu pune si revin-o cu un raspuns.

new hitid = 999;

Daca pun ce mi-ai dat tu mai sus in loc de cele 5 erori normale imi mai da 21 in plus.....Si in edit am numerotat liniile sa iti dai seama care e linia...Am facut si un nou edit....

Edited by PolloDate
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.