04.12.2018, 22:27
Hey,
My MySQL Script just repeats the first Letters.
This is the Output
The Code is
The Enum is
The pVorname gets read in OnDialogResponse
Code:
My MySQL Script just repeats the first Letters.
This is the Output
Код:
UPDATE users SET geburtstag = '1', vorname = 'S', nachname = 'G' , geschlecht = '0' WHERE id = '6'
Код:
mysql_format(handle, query, sizeof(query), "UPDATE users SET geburtstag = '%e', vorname = '%e', nachname = '%e' , geschlecht = '%d' WHERE id = '%d'", PlayerInfo[playerid][pGeburtstag], PlayerInfo[playerid][pVorname],PlayerInfo[playerid][pNachname],PlayerInfo[playerid][pGeschlecht], PlayerInfo[playerid][p_id]);
Код:
pVorname[128], pNachname[128], pGeburtstag[20],
The pVorname gets read in OnDialogResponse
Code:
Код:
strcpy(Vorname[playerid], inputtext, 128); if(strlen(inputtext) < 3) return SendClientMessage(playerid,-1,"Dein Vorname muss mindestens 3 Buchstaben enthalten!"); format(string,sizeof(string),"Dein Vorname ist nun %s", Vorname[playerid]); SendClientMessage(playerid,-1,string); PlayerTextDrawSetString(playerid,RegisterPTD[playerid][1],Vorname[playerid]); SelectTextDraw(playerid, 0xFFFFFFFF); PlayerInfo[playerid][pVorname] = Vorname[playerid];