14.09.2009, 09:19
Whole Code:
Line Erroring:
Error
C:\Documents and Settings\.pwn(873) : error 035: argument type mismatch (argument 1)
Works fine on everything else so whats the problem?
Код:
dcmd_oaccban(playerid,params[]) { if(PlayerInfo[playerid][pAdmin] == 0) return SystemMsg(playerid, "You must be a admin to use this command!"); if(!strlen(params)) return SystemMsg(playerid, "/oaccban [playername]"); if(IsNumeric(params)) return SystemMsg(playerid, "That player is not connected!"); new player2[128]; format(player2, sizeof(player2), params); if(!udb_Exists(player2)) { SystemMsg(playerid, "Account does not exist"); } else { new file[128];format(file,sizeof(file),"%s.dudb.sav",udb_encode(player2)); dini_IntSet(file, "pBanned", 1); SystemMsg(playerid, "The selected user has been banned"); new str2[MAX_STRING], second, minute, hour, day, month, year; gettime(hour, minute, second); getdate(year, month, day); format(str2, sizeof(str2), "ADMIN %s offline account banned %s on %d/%d/%d at %d:%d:%d.)", PlayerName(playerid), PlayerName(player2), month, day, year, hour, minute, second); ServerLog(str2); return 1; } return 1; }
Код:
format(str2, sizeof(str2), "ADMIN %s offline account banned %s on %d/%d/%d at %d:%d:%d.)", PlayerName(playerid), PlayerName(player2), month, day, year, hour, minute, second);
C:\Documents and Settings\.pwn(873) : error 035: argument type mismatch (argument 1)
Works fine on everything else so whats the problem?