SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 09/03/2018, 12:21 PM   #1
enzulikeS
Big Clucker
 
Join Date: Jan 2018
Posts: 199
Reputation: 2
Default array

Code:
CMD:realizare(playerid, params[]) {
	if(gPlayerLogged[playerid] ==0) return 1;
	new string[256], string2[256], status;
	strcat(string2, "Realizare\tStatus\n");
	for(new i = 0; i < 3; i++) {
		if(PlayerInfo[playerid][pAchievement][i] == 0) status = "{FF0000}Realizare incompleta";
		else if(PlayerInfo[playerid][pAchievement][i] == 1) status = "{00FF00}Realizare completa";

		format(string,sizeof(string), "%s\t%s\n", Realizari(i), status);
		strcat(string, string2);
	}
	ShowPlayerDialog(playerid, DIALOG_REALIZARE, DIALOG_STYLE_TABLIST_HEADERS, "Realizari:", string2, "SELECT", "CLOSE");
	return 1;
}
D:\server\gamemodes\ExtremeGame.pwn(31169) : error 006: must be assigned to an array
D:\server\gamemodes\ExtremeGame.pwn(31170) : error 006: must be assigned to an array
enzulikeS is offline   Reply With Quote
Old 09/03/2018, 12:23 PM   #2
wallen
Huge Clucker
 
wallen's Avatar
 
Join Date: Aug 2015
Location: Italia
Posts: 242
Reputation: 15
Default Re: array

PHP Code:
        if(PlayerInfo[i][pAchievement] == 0status "{FF0000}Realizare incompleta";
        else if(
PlayerInfo[i][pAchievement] == 1status "{00FF00}Realizare completa"
(new status[28]
wallen is offline   Reply With Quote
Old 09/03/2018, 12:29 PM   #3
skuller12
Big Clucker
 
Join Date: Feb 2015
Location: Galati, Romania
Posts: 101
Reputation: 0
Default Re: array

status[35] nu status simplu ptr ca e tip string
skuller12 is offline   Reply With Quote
Old 09/03/2018, 12:32 PM   #4
enzulikeS
Big Clucker
 
Join Date: Jan 2018
Posts: 199
Reputation: 2
Default Re: array

fixed, ty
enzulikeS is offline   Reply With Quote
Reply

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
[debug] Attempted to read/write array element at index 90 in array of size 90 HELP ME D: tomasfernandez Scripting Help 3 16/03/2017 05:26 AM
[3D Array] Defining an array entry with another array introzen Scripting Help 3 04/04/2016 07:29 PM
(dFile) error 047: array sizes do not match, or destination array is too small Jack_Leslie Scripting Help 0 06/09/2011 01:20 AM
(dFile) error 047: array sizes do not match, or destination array is too small Jack_Leslie Scripting Help 8 01/09/2011 05:32 AM
[Sloved]error 047: array sizes do not match, or destination array is too small CoaPsyFactor Help Archive 1 09/06/2011 08:27 PM


All times are GMT. The time now is 03:47 AM.


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