strcat(longDialog, "{408080}PERSONAS DATI/PERSONAL INFO{C9C9C9}\n", sizeof(longDialog)); format(longDialog, sizeof(longDialog), "{408080}Uzvārds/Surname:\n%s\n", tempstr); format(longDialog, sizeof(longDialog), "%sVārds/Given name:\n%s\n", name); format(longDialog, sizeof(longDialog), "%sIzcelsme/Origin:\n%s\n", PlayerData[playerid][pOrigin]); format(longDialog, sizeof(longDialog), "%sDzimљanas datums/Date of birth:\n%s\n", PlayerData[playerid][pBirthdate]); format(longDialog, sizeof(longDialog), "%sDzimums/Gender:\n%s\n\n", GetPlayerGender(playerid)); strcat(longDialog, "%s{408080}PASES DATI/PASSPORT INFO{C9C9C9}\n", sizeof(longDialog)); format(longDialog, sizeof(longDialog), "%sPases Nr./Passport No.:\n%s\n", PlayerData[playerid][pPassportNr]); format(longDialog, sizeof(longDialog), "%sIzdoљanas datums/Date of issue:\n%s\n", PlayerData[playerid][pPassportID]); format(longDialog, sizeof(longDialog), "%sDerīga līdz/Date of expiry:\n%s", PlayerData[playerid][pPassportED]); format(FullName, sizeof(FullName), "%s pase \"KOPIA\"", GetPlayerNameEx(playerid)); ShowDialog(playerid, passportAccept, DIALOG_STYLE_MSGBOX, FullName, longDialog, "Apstipr.", "Atcelt");
Derīga līdz/Date of expiry:
new longDialog[3000];
show me your new longdialog[xx];
make it Код:
new longDialog[3000]; |
new longDialog[3000], date[3]; new name[MAX_PLAYER_NAME], tempstr[MAX_PLAYER_NAME / 2]; GetPlayerName(playerid, name, sizeof(name)); new loc = strfind(name, "_", true); strmid(tempstr, name, loc, strlen(name)); strdel(name, loc, strlen(name)); strdel(tempstr, 0, 1); getdate(date[2], date[1], date[0]); format(PlayerData[playerid][pPassportNr], 10, "LS%d", random(9999999)); format(PlayerData[playerid][pPassportID], 24, "%02d/%02d/%d", date[0], date[1], date[2]); format(PlayerData[playerid][pPassportED], 24, "%02d/%02d/%d", date[0], date[1], date[2]+2); strcat(longDialog, "{408080}PERSONAS DATI/PERSONAL INFO{C9C9C9}\n", sizeof(longDialog)); format(longDialog, sizeof(longDialog), "{408080}Uzvārds/Surname:\n%s\n", tempstr); format(longDialog, sizeof(longDialog), "%sVārds/Given name:\n%s\n", name); format(longDialog, sizeof(longDialog), "%sIzcelsme/Origin:\n%s\n", PlayerData[playerid][pOrigin]); format(longDialog, sizeof(longDialog), "%sDzimљanas datums/Date of birth:\n%s\n", PlayerData[playerid][pBirthdate]); format(longDialog, sizeof(longDialog), "%sDzimums/Gender:\n%s\n\n", GetPlayerGender(playerid)); strcat(longDialog, "%s{408080}PASES DATI/PASSPORT INFO{C9C9C9}\n", sizeof(longDialog)); format(longDialog, sizeof(longDialog), "%sPases Nr./Passport No.:\n%s\n", PlayerData[playerid][pPassportNr]); format(longDialog, sizeof(longDialog), "%sIzdoљanas datums/Date of issue:\n%s\n", PlayerData[playerid][pPassportID]); format(longDialog, sizeof(longDialog), "%sDerīga līdz/Date of expiry:\n%s", PlayerData[playerid][pPassportED]); ShowDialog(playerid, passportAccept, DIALOG_STYLE_MSGBOX, "Pase/Passport \"KOPIA\"", longDialog, "Apstipr.", "Atcelt");
format(longDialog, sizeof(longiDalog)"{408080}PERSONAS DATI/PERSONAL INFO{C9C9C9}\n");
strcat(longDialog, "{408080}Uzvārds/Surname:\n%s\n", tempstr, sizeof(longDialog));
strcat(longDialog, "%sVārds/Given name:\n%s\n", name, sizeof(longDialog));
...
new String[256]; format(String, sizeof(String), "First Thing\nSecond Thing\n Third Thing\nX Thing");
roleplay.pwn(327) : error 035: argument type mismatch (argument 3) roleplay.pwn(327) : warning 202: number of arguments does not match definition roleplay.pwn(328) : error 035: argument type mismatch (argument 3) roleplay.pwn(328) : warning 202: number of arguments does not match definition roleplay.pwn(329) : warning 202: number of arguments does not match definition roleplay.pwn(330) : warning 202: number of arguments does not match definition roleplay.pwn(331) : error 035: argument type mismatch (argument 3) roleplay.pwn(331) : warning 202: number of arguments does not match definition roleplay.pwn(333) : warning 202: number of arguments does not match definition roleplay.pwn(334) : warning 202: number of arguments does not match definition roleplay.pwn(335) : warning 202: number of arguments does not match definition
format(longDialog, sizeof(longDialog), "{408080}PERSONAS DATI/PERSONAL INFO{C9C9C9}\n"); strcat(longDialog, "%s{408080}Uzvārds/Surname:\n%s\n", tempstr, sizeof(longDialog)); strcat(longDialog, "%sVārds/Given name:\n%s\n", name, sizeof(longDialog)); strcat(longDialog, "%sIzcelsme/Origin:\n%s\n", PlayerData[playerid][pOrigin], sizeof(longDialog)); strcat(longDialog, "%sDzimšanas datums/Date of birth:\n%s\n", PlayerData[playerid][pBirthdate], sizeof(longDialog)); strcat(longDialog, "%sDzimums/Gender:\n%s\n\n", GetPlayerGender(playerid), sizeof(longDialog)); strcat(longDialog, "%s{408080}PASES DATI/PASSPORT INFO{C9C9C9}\n", sizeof(longDialog)); strcat(longDialog, "%sPases Nr./Passport No.:\n%s\n", PlayerData[playerid][pPassportNr], sizeof(longDialog)); strcat(longDialog, "%sIzdošanas datums/Date of issue:\n%s\n", PlayerData[playerid][pPassportID], sizeof(longDialog)); strcat(longDialog, "%sDerīga līdz/Date of expiry:\n%s", PlayerData[playerid][pPassportED], sizeof(longDialog)); ShowDialog(playerid, passportAccept, DIALOG_STYLE_MSGBOX, "Pase/Passport \"KOPIA\"", longDialog, "Apstipr.", "Atcelt");
new string[1000], dialog[3000]; format(string, sizeof(string),"{408080}PERSONAS DATI/PERSONAL INFO{C9C9C9}\n"); strcat(dialog,string); format(string, sizeof(string),"{408080}Uzvards/Surname:\n%s\n", tempstr); strcat(dialog,string); format(string, sizeof(string),"%sVards/Given name:\n%s\n", name); strcat(dialog,string); format(string, sizeof(string),"%sIzcelsme/Origin:\n%s\n", PlayerData[playerid][pOrigin]); strcat(dialog,string); format(string, sizeof(string),"%sDzimšanas datums/Date of birth:\n%s\n", PlayerData[playerid][pBirthdate]); strcat(dialog,string); format(string, sizeof(string),"%sDzimums/Gender:\n%s\n\n", GetPlayerGender(playerid)); strcat(dialog,string); format(string, sizeof(string),"%s{408080}PASES DATI/PASSPORT INFO{C9C9C9}\n"); strcat(dialog,string); format(string, sizeof(string),"%sPases Nr./Passport No.:\n%s\n", PlayerData[playerid][pPassportNr]); strcat(dialog,string); format(string, sizeof(string),"%sIzdošanas datums/Date of issue:\n%s\n", PlayerData[playerid][pPassportID]); strcat(dialog,string); format(string, sizeof(string),"%s pase \"KOPIA\"", GetPlayerNameEx(playerid)); strcat(dialog,string); format(string, sizeof(string),"{408080}PERSONAS DATI/PERSONAL INFO{C9C9C9}\n"); strcat(dialog,string); ShowPlayerDialog(playerid,passportAccept,DIALOG_STYLE_MSGBOX,FullName,dialog,"Apstipr","Atcelt");