04.01.2011, 21:48
Код:
CMD:premium(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1337) { new pid, Year, Month, Day, str[64]; if(sscanf(params,"d02d02dd",pid, Day, Month, Year)) return SendClientMessage(playerid,COLOR_WHITE, "Utilizzo: /premium [playerid] [giorno] [mese] [anno]"); if(!IsPlayerConnected(pid)) return SendClientMessage(playerid,COLOR_RED, "Il player da te specificato non и collegato"); PlayerInfo[pid][pPremium] = 1; SendClientMessageEx(pid, COLOR_LIGHTBLUE, "Sei stato settato utente premium fino al %02d %02d %d", Day, Month, Year); SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Hai settato %s utente premium fino al %02d %02d %d", PlayerName(pid), Day, Month, Year); format(str, sizeof(str), "%d-%02d-%02d", Year, Month, Day); PlayerInfo[pid][pScadenza] = str[64]; // LINE OF ERROR } return 1; }
Question: 2011-01-04 Is a string??