[Pomoc] Dialog error


Započeo 032.Marcus, Januar 30, 2013, 17:38:04 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Scripta koju koristim: Ravens RolePlay
Problem: Dodajem dialog za godine, ali mi ispisuje Error: Undefined symbol "text", a taj red je split(text
Code:
if(dialogid == 4)
		{
        	if(RegistrationStep[playerid] == 2)
	    	{
				if(response)
				{
			        new year, month,day;
					getdate(year, month, day);
			        new DateInfo[3][20];
					split(text, DateInfo, '/');
					if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year)
					{
		       			ClearChatbox(playerid, 8);
						ShowPlayerDialog(playerid,1551,DIALOG_STYLE_INPUT,"Koji je datum vaseg rodjenja?","Upisite tacan datum rodjenja (koristite dan/mesec/godina)\nPrimer:10/06/1996","U redu","");
					    return 0;
					}
					new check = year - strvalEx(DateInfo[2]);
					if(check == year)
					{
					    ClearChatbox(playerid, 8);
						ShowPlayerDialog(playerid,1551,DIALOG_STYLE_INPUT,"Koji je datum vaseg rodjenja?","Upisite tacan datum rodjenja (koristite dan/mesec/godina)\nPrimer:10/06/1996","U redu","");
					    return 0;
					}
					if(strvalEx(DateInfo[1]) > month)
					{
					    check -= 1;
					}
					else if(strvalEx(DateInfo[1]) == month && strval(DateInfo[0]) > day)
					{
					    check -= 1;
					}
					PlayerInfo[playerid][pAge] = check;
				 	SendClientMessage(playerid, COLOR_YELLOW, "______________________________");
					format(string, sizeof(string), "Ok, dakle vi imate %d godina.",PlayerInfo[playerid][pAge]);
					SendClientMessage(playerid, COLOR_YELLOW2, string);
					SendClientMessage(playerid, COLOR_YELLOW, "______________________________");
					RegistrationStep[playerid] = 3;
					TextDrawShowForPlayer(playerid, TextdrawREG[playerid]);
					ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Odakle ste?", "Srbija \nCrna Gora \nHrvatska \nMakedonija \nBosna i Hercegovina \nSlovenija", "U redu", "");
					return 0;
				}
			}
			return 1;
		}



EDIT: Reseno, samo sam trebao inputtext a ne text.
Poslednja Izmena: Januar 30, 2013, 18:05:05 POSLE PODNE od 032.Marcus