SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Romānă/Romanian

 
 
Thread Tools Display Modes
Old 22/10/2017, 08:12 AM   #11
Showerr
Little Clucker
 
Join Date: Nov 2015
Location: neamt
Posts: 35
Reputation: 0
Default Re: unknown command

Quote:
Originally Posted by DimaShift View Post
la tote comenzile primesti asa erore sau numai la aceasta?
nu mumai la comenzile si sistem-ul de la masini personale
uite si logul
[10:51:33] [debug] Run time error 5: "Invalid memory access"
[10:51:33] [debug] AMX backtrace:
[10:51:33] [debug] #0 00141c58 in public OnVehiclesLoad (playerid=1) at FiveGame2017.pwn:7748
[10:52:26] [debug] Run time error 5: "Invalid memory access"
[10:52:26] [debug] AMX backtrace:
[10:52:26] [debug] #0 00171344 in public PayDay (playerid=1) at FiveGame2017.pwn:8772
[10:52:26] [debug] #1 00108f38 in public OtherTimer () at FiveGame2017.pwn:6609
[11:06:52] [debug] Run time error 5: "Invalid memory access"
[11:06:52] [debug] AMX backtrace:
[11:06:52] [debug] #0 003be680 in public cmd_v (playerid=1, params[][email protected] "") at FiveGame2017.pwn:23590
[11:06:52] [debug] #1 native CallLocalFunction () from samp03svr
[11:06:52] [debug] #2 00000a0c in public OnPlayerCommandText (playerid=1, cmdtext[][email protected] "/v") at E:\FiveGame2017linkmania\pawno\include\zcmd.inc:91
[11:06:54] [debug] Run time error 5: "Invalid memory access"
[11:06:54] [debug] AMX backtrace:
[11:06:54] [debug] #0 003be680 in public cmd_v (playerid=1, params[][email protected] "") at FiveGame2017.pwn:23590
[11:06:54] [debug] #1 native CallLocalFunction () from samp03svr
[11:06:54] [debug] #2 00000a0c in public OnPlayerCommandText (playerid=1, cmdtext[][email protected] "/v") at E:\FiveGame2017linkmania\pawno\include\zcmd.inc:91
Showerr is offline  
Old 22/10/2017, 08:24 AM   #12
DimaShift
Banned
 
Join Date: May 2017
Location: Republic of Moldova
Posts: 123
Reputation: 43
Default Re: unknown command

incearca asta
Code:
CMD:v(playerid, params []){
	format(pInfo[playerid][pT], sizeof(pInfo[playerid][pT]), "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]);
	stdlg[playerid] = "Name\tStatus\tSpawn\tClass";
	new test[15]= "",test2[17] = "{00BA19}Unlocked",test3[17] = "{00BA19}Spawned";
	for(new i = 0; i < 15; ++i){
		if Veh[playerid][i][Owner] == pInfo[playerid][pID] *then {
			if Veh[playerid][i][vTax] > 0 *then test = "{BD0000}seized";
			if Veh[playerid][i][Lock] > 0 *then test2 = "{BD0000}Locked";
			if Veh[playerid][i][vSp] > 0 *then test3 = "{BD0000}Despawned";
			format(stdlg[playerid], sizeof(stdlg[playerid]), "%s\n%s%s\t%s\t%s\t%s", stdlg[playerid], g_VehicleNames[Veh[playerid][i][Model] -400], test, test2, test3, Veh[playerid][i][Class]);}}
	ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
	return true;
}
DimaShift is offline  
Old 22/10/2017, 08:31 AM   #13
Showerr
Little Clucker
 
Join Date: Nov 2015
Location: neamt
Posts: 35
Reputation: 0
Default Re: unknown command

Quote:
Originally Posted by DimaShift View Post
incearca asta
Code:
CMD:v(playerid, params []){
	format(pInfo[playerid][pT], sizeof(pInfo[playerid][pT]), "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]);
	stdlg[playerid] = "Name\tStatus\tSpawn\tClass";
	new test[15]= "",test2[17] = "{00BA19}Unlocked",test3[17] = "{00BA19}Spawned";
	for(new i = 0; i < 15; ++i){
		if Veh[playerid][i][Owner] == pInfo[playerid][pID] *then {
			if Veh[playerid][i][vTax] > 0 *then test = "{BD0000}seized";
			if Veh[playerid][i][Lock] > 0 *then test2 = "{BD0000}Locked";
			if Veh[playerid][i][vSp] > 0 *then test3 = "{BD0000}Despawned";
			format(stdlg[playerid], sizeof(stdlg[playerid]), "%s\n%s%s\t%s\t%s\t%s", stdlg[playerid], g_VehicleNames[Veh[playerid][i][Model] -400], test, test2, test3, Veh[playerid][i][Class]);}}
	ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_TABLIST_HEADERS, pInfo[playerid][pT], stdlg[playerid], "Select", "Cancel");
	return 1;
}
da eroare la linia format(pInfo[playerid][pT], sizeof(pInfo[playerid][pT]), "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]);

FiveGame2017.pwn(23597) : error 001: expected token: "]", but found "-identifier-"
FiveGame2017.pwn(23597) : warning 215: expression has no effect
FiveGame2017.pwn(23597) : error 001: expected token: ";", but found "]"
FiveGame2017.pwn(23597) : error 029: invalid expression, assumed zero
FiveGame2017.pwn(23597) : fatal error 107: too many error messages on one line
Showerr is offline  
Old 22/10/2017, 08:40 AM   #14
DimaShift
Banned
 
Join Date: May 2017
Location: Republic of Moldova
Posts: 123
Reputation: 43
Default Re: unknown command

Code:
CMD:v(playerid, params []){
	new string[100],string2[200];
	format(string, sizeof(string), "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]);
	new test[15]= "",test2[17] = "{00BA19}Unlocked",test3[17] = "{00BA19}Spawned";
	string2 = "Name\tStatus\tSpawn\tClass";
	for(new i = 0; i < 15; ++i){
		if Veh[playerid][i][Owner] == pInfo[playerid][pID] *then {
			if Veh[playerid][i][vTax] > 0 *then test = "{BD0000}seized";
			if Veh[playerid][i][Lock] > 0 *then test2 = "{BD0000}Locked";
			if Veh[playerid][i][vSp] > 0 *then test3 = "{BD0000}Despawned";
			format(string2, sizeof(string2), "%s\n%s%s\t%s\t%s\t%s", string2, g_VehicleNames[Veh[playerid][i][Model] -400], test, test2, test3, Veh[playerid][i][Class]);}}
	ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_TABLIST_HEADERS, string, string2, "Select", "Cancel");
	return true;
}
DimaShift is offline  
Old 22/10/2017, 08:46 AM   #15
Showerr
Little Clucker
 
Join Date: Nov 2015
Location: neamt
Posts: 35
Reputation: 0
Default Re: unknown command

Quote:
Originally Posted by DimaShift View Post
Code:
CMD:v(playerid, params []){
	new string[100],string2[200];
	format(string, sizeof(string), "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]);
	new test[15]= "",test2[17] = "{00BA19}Unlocked",test3[17] = "{00BA19}Spawned";
	string2 = "Name\tStatus\tSpawn\tClass";
	for(new i = 0; i < 15; ++i){
		if Veh[playerid][i][Owner] == pInfo[playerid][pID] *then {
			if Veh[playerid][i][vTax] > 0 *then test = "{BD0000}seized";
			if Veh[playerid][i][Lock] > 0 *then test2 = "{BD0000}Locked";
			if Veh[playerid][i][vSp] > 0 *then test3 = "{BD0000}Despawned";
			format(string2, sizeof(string2), "%s\n%s%s\t%s\t%s\t%s", string2, g_VehicleNames[Veh[playerid][i][Model] -400], test, test2, test3, Veh[playerid][i][Class]);}}
	ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_TABLIST_HEADERS, string, string2, "Select", "Cancel");
	return true;
}
eroare if Veh[playerid][i][vSp] > 0 *then test3 = "{BD0000}Despawned";
FiveGame2017.pwn(23604) : error 047: array sizes do not match, or destination array is too small
Showerr is offline  
Old 22/10/2017, 08:48 AM   #16
DimaShift
Banned
 
Join Date: May 2017
Location: Republic of Moldova
Posts: 123
Reputation: 43
Default Re: unknown command

nu pot face copilare si nu pot vedea unele erori
Code:
CMD:v(playerid, params []){
	new string[100],string2[200];
	format(string, sizeof(string), "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]);
	new test[15]= "",test2[17] = "{00BA19}Unlocked",test3[18] = "{00BA19}Spawned";
	string2 = "Name\tStatus\tSpawn\tClass";
	for(new i = 0; i < 15; ++i){
		if Veh[playerid][i][Owner] == pInfo[playerid][pID] *then {
			if Veh[playerid][i][vTax] > 0 *then test = "{BD0000}seized";
			if Veh[playerid][i][Lock] > 0 *then test2 = "{BD0000}Locked";
			if Veh[playerid][i][vSp] > 0 *then test3 = "{BD0000}Despawned";
			format(string2, sizeof(string2), "%s\n%s%s\t%s\t%s\t%s", string2, g_VehicleNames[Veh[playerid][i][Model] -400], test, test2, test3, Veh[playerid][i][Class]);}}
	ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_TABLIST_HEADERS, string, string2, "Select", "Cancel");
	return true;
}
DimaShift is offline  
Old 22/10/2017, 08:56 AM   #17
Showerr
Little Clucker
 
Join Date: Nov 2015
Location: neamt
Posts: 35
Reputation: 0
Default Re: unknown command

Quote:
Originally Posted by DimaShift View Post
nu pot face copilare si nu pot vedea unele erori
Code:
CMD:v(playerid, params []){
	new string[100],string2[200];
	format(string, sizeof(string), "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]);
	new test[15]= "",test2[17] = "{00BA19}Unlocked",test3[18] = "{00BA19}Spawned";
	string2 = "Name\tStatus\tSpawn\tClass";
	for(new i = 0; i < 15; ++i){
		if Veh[playerid][i][Owner] == pInfo[playerid][pID] *then {
			if Veh[playerid][i][vTax] > 0 *then test = "{BD0000}seized";
			if Veh[playerid][i][Lock] > 0 *then test2 = "{BD0000}Locked";
			if Veh[playerid][i][vSp] > 0 *then test3 = "{BD0000}Despawned";
			format(string2, sizeof(string2), "%s\n%s%s\t%s\t%s\t%s", string2, g_VehicleNames[Veh[playerid][i][Model] -400], test, test2, test3, Veh[playerid][i][Class]);}}
	ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_TABLIST_HEADERS, string, string2, "Select", "Cancel");
	return true;
}
acum imi merge perfect dar in joc nu trece de acel format(string2, sizeof(string2), "%s\n%s%s\t%s\t%s\t%s", string2, g_VehicleNames[Veh[playerid][i][Model] -400], test, test2, test3, Veh[playerid][i][Class]);}}

erori log
[11:52:33] [debug] #0 001443c0 in public OnVehiclesLoad (playerid=0) at FiveGame2017.pwn:7798
[11:52:49] [debug] Run time error 4: "Array index out of bounds"
[11:52:49] [debug] Attempted to read/write array element at index 32367 in array of size 212
[11:52:49] [debug] AMX backtrace:
[11:52:49] [debug] #0 003bea90 in public cmd_v (playerid=0, params[][email protected] "") at FiveGame2017.pwn:23606
[11:52:49] [debug] #1 native CallLocalFunction () from samp03svr
[11:52:49] [debug] #2 00000a0c in public OnPlayerCommandText (playerid=0, cmdtext[][email protected] "/v") at E:\FiveGame2017linkmania\pawno\include\zcmd.inc:91
[11:52:51] [debug] Run time error 4: "Array index out of bounds"
[11:52:51] [debug] Attempted to read/write array element at index 32367 in array of size 212
[11:52:51] [debug] AMX backtrace:
[11:52:51] [debug] #0 003bea90 in public cmd_v (playerid=0, params[][email protected] "") at FiveGame2017.pwn:23606
[11:52:51] [debug] #1 native CallLocalFunction () from samp03svr
[11:52:51] [debug] #2 00000a0c in public OnPlayerCommandText (playerid=0, cmdtext[][email protected] "/v") at E:\FiveGame2017linkmania\pawno\include\zcmd.inc:91
[11:53:06] [debug] Run time error 4: "Array index out of bounds"
[11:53:06] [debug] Attempted to read/write array element at negative index -1
[11:53:06] [debug] AMX backtrace:
[11:53:06] [debug] #0 002be884 in public OnDialogResponse (playerid=1, dialogid=32, response=1, listitem=5, inputtext[][email protected] "Coffee - 400$") at FiveGame2017.pwn:17097
Showerr is offline  
Old 22/10/2017, 09:01 AM   #18
DimaShift
Banned
 
Join Date: May 2017
Location: Republic of Moldova
Posts: 123
Reputation: 43
Default Re: unknown command

pai veri sa spui ca dialogul nu iti pare in comanda?
am mai adugat 200 in string2
Code:
CMD:v(playerid, params []){
	new string[100],string2[400];
	format(string, sizeof(string), "%s's Vehicles (%d slots)", GetName(playerid), pInfo[playerid][pSlotVeh]);
	new test[15]= "",test2[17] = "{00BA19}Unlocked",test3[18] = "{00BA19}Spawned";
	string2 = "Name\tStatus\tSpawn\tClass";
	for(new i = 0; i < 15; ++i){
		if Veh[playerid][i][Owner] == pInfo[playerid][pID] *then {
			if Veh[playerid][i][vTax] > 0 *then test = "{BD0000}seized";
			if Veh[playerid][i][Lock] > 0 *then test2 = "{BD0000}Locked";
			if Veh[playerid][i][vSp] > 0 *then test3 = "{BD0000}Despawned";
			format(string2, sizeof(string2), "%s\n%s%s\t%s\t%s\t%s", string2, g_VehicleNames[Veh[playerid][i][Model] -400], test, test2, test3, Veh[playerid][i][Class]);}}
	ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_TABLIST_HEADERS, string, string2, "Select", "Cancel");
	return true;
}
DimaShift is offline  
Old 22/10/2017, 09:18 AM   #19
Showerr
Little Clucker
 
Join Date: Nov 2015
Location: neamt
Posts: 35
Reputation: 0
Default Re: unknown command

nu imi apare zice ca comanda nu exista
Showerr is offline  
Old 07/11/2017, 04:11 PM   #20
Showerr
Little Clucker
 
Join Date: Nov 2015
Location: neamt
Posts: 35
Reputation: 0
Default Re: unknown command

ma ajuta cineva?
Showerr is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with YCMD proces command and problem with "Server:Unknown command JoDe Scripting Help 1 20/04/2018 12:12 PM
Problem with command. Only returns Server: Unknown Command Knappen Scripting Help 9 18/12/2013 06:09 PM
[Command Bugged] Each time i use /respawnallcars it says Unknown Command Rand_Omar Scripting Help 11 30/09/2012 12:35 AM
Executed ZCMD command returns SERVER: Unknown Command SexTourist Scripting Help 12 03/01/2012 03:38 PM
Slap command returns an Unknown Command when player is not connected HydraX Help Archive 16 01/08/2011 05:19 AM


All times are GMT. The time now is 04:20 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.